aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@apple.com>2004-06-24 17:53:07 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-06-24 10:53:07 -0700
commitd42093a1dbfe8be8a96829b8783da5efe8c3d7c8 (patch)
tree928bddfe09a626f9116f84ebf37aefc21a0f72a5 /gcc/config
parentcc21f43ecc00fdd11f68939b5aab167a2e6d0feb (diff)
downloadgcc-d42093a1dbfe8be8a96829b8783da5efe8c3d7c8.zip
gcc-d42093a1dbfe8be8a96829b8783da5efe8c3d7c8.tar.gz
gcc-d42093a1dbfe8be8a96829b8783da5efe8c3d7c8.tar.bz2
darwin7.h (MATH_LIBRARY): Remove.
gcc/ChangeLog: * config/darwin7.h (MATH_LIBRARY): Remove. (LIB_SPEC): Define. * config/darwin.h (MATH_LIBRARY): Define always to empty. (LIB_SPEC): Only define if not already defined. libstdc++/ChangeLog: * linkage.m4: Remove check for libmx. * configure: Regenerate. libgfortran/ChangeLog: * configure.ac: Remove check for libmx. * configure: Regenerate. From-SVN: r83603
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/darwin.h13
-rw-r--r--gcc/config/darwin7.h9
2 files changed, 10 insertions, 12 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index 37122e6..582e707 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -39,13 +39,8 @@ Boston, MA 02111-1307, USA. */
#define OBJECT_FORMAT_MACHO
-/* Suppress g++ attempt to link in the math library automatically.
- (Some Darwin versions have a libm, but they seem to cause problems
- for C++ executables.) This needs to be -lmx for Darwin 7.0 and
- above. */
-#ifndef MATH_LIBRARY
+/* Suppress g++ attempt to link in the math library automatically. */
#define MATH_LIBRARY ""
-#endif
/* We have atexit. */
@@ -276,10 +271,12 @@ Boston, MA 02111-1307, USA. */
%{dylinker} %{Mach} "
-/* Machine dependent libraries. */
+/* Machine dependent libraries but do not redefine it if we already on 7.0 and
+ above as it needs to link with libmx also. */
-#undef LIB_SPEC
+#ifndef LIB_SPEC
#define LIB_SPEC "%{!static:-lSystem}"
+#endif
/* We specify crt0.o as -lcrt0.o so that ld will search the library path. */
diff --git a/gcc/config/darwin7.h b/gcc/config/darwin7.h
index 0b215c2..47a8fa1 100644
--- a/gcc/config/darwin7.h
+++ b/gcc/config/darwin7.h
@@ -22,7 +22,8 @@ Boston, MA 02111-1307, USA. */
/* Darwin 7.0 and above have C99 functions. */
#define TARGET_C99_FUNCTIONS 1
-/* But for some reason they are located in libmx so have it
- be included when asked for and automatically when linking
- with gfortran and g++. */
-#define MATH_LIBRARY "-lmx"
+/* Machine dependent libraries, include libmx when compiling on Darwin 7.0
+ and above. */
+
+#undef LIB_SPEC
+#define LIB_SPEC "%{!static:-lSystem -lmx}"