This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Darwin the C99 math functions are in a library called libmx (Do not ask me why).
This patch detects the library and gets rid of most of the need of libmath in libstdc++.
OK? Bootstrapped on powerpc-apple-darwin7.3.0, powerpc-apple-darwin6.8, and i686-pc-linux-gnu with no regressions.
Thanks, Andrew Pinski
ChangeLog: * linkage.m4 (GLIBCXX_CHECK_MATH_SUPPORT): Check for libmx also.
Patch: Index: linkage.m4 =================================================================== RCS file: /cvs/gcc/gcc/libstdc++-v3/linkage.m4,v retrieving revision 1.2.2.5 diff -u -p -r1.2.2.5 linkage.m4 --- linkage.m4 4 Mar 2004 15:40:42 -0000 1.2.2.5 +++ linkage.m4 23 Apr 2004 17:26:17 -0000 @@ -404,6 +404,11 @@ AC_DEFUN([GLIBCXX_CHECK_MATH_SUPPORT], [ ac_save_LIBS="$LIBS" LIBS="$LIBS $libm"
+ dnl Check libmx + AC_CHECK_LIB(mx, sqrtf, libmx="-lmx") + dnl ac_save_LIBS="$LIBS" + LIBS="$LIBS $libmx" + dnl Check to see if certain C math functions exist. GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_1(isinf) GLIBCXX_CHECK_MATH_DECL_AND_LINKAGE_1(isnan)
Attachment:
fix.libmx.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |