[m-rev.] diff: fix Mac OS problem with libgcc.a
Fergus Henderson
fjh at cs.mu.OZ.AU
Wed Jun 27 18:23:08 AEST 2001
Estimated hours taken: 0.5
configure.in:
Fix a problem that caused some spurious error messages on Mac OS X:
only include libgcc.a in SHARED_LIBS if gcc is present.
Workspace: /home/hg/fjh/mercury
Index: configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/configure.in,v
retrieving revision 1.253
diff -u -d -r1.253 configure.in
--- configure.in 2001/04/10 15:37:35 1.253
+++ configure.in 2001/04/16 09:21:22
@@ -2233,8 +2233,14 @@
# see Mmake.common.in for documentation on the meaning of these variables
LINK_SHARED_OBJ="$CC -shared"
LINK_SHARED_OBJ_SH="$CC -shared"
-SHARED_LIBS='`gcc -print-libgcc-file-name` $(MATH_LIB) -lc'
-SHARED_LIBS_SH='`gcc -print-libgcc-file-name` $MATH_LIB -lc'
+AC_PATH_PROG(GCC,gcc)
+if test "$GCC" != ""; then
+ SHARED_LIBS='`gcc -print-libgcc-file-name` $(MATH_LIB) -lc'
+ SHARED_LIBS_SH='`gcc -print-libgcc-file-name` $MATH_LIB -lc'
+else
+ SHARED_LIBS='$(MATH_LIB) -lc'
+ SHARED_LIBS_SH='$MATH_LIB -lc'
+fi
EXE_RPATH_OPT="-Wl,-rpath,"
EXE_RPATH_SEP=" -Wl,-rpath,"
SHLIB_RPATH_OPT="-Wl,-rpath,"
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list