[m-rev.] diff: support static linking with clang on Linux
Julien Fischer
juliensf at csse.unimelb.edu.au
Fri Aug 26 01:38:45 AEST 2011
Branches: main, 11.07
configure.in:
Support static linking with clang on Linux.
Julien.
Index: configure.in
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/configure.in,v
retrieving revision 1.584
diff -u -r1.584 configure.in
--- configure.in 25 Aug 2011 14:16:37 -0000 1.584
+++ configure.in 25 Aug 2011 15:25:22 -0000
@@ -4563,11 +4563,9 @@
# Note that changes here may require changes in scripts/ml.in.
-# XXX Do we also need -static for clang?
-#
LD_STATIC_FLAGS=
case "$C_COMPILER_TYPE" in
- gcc*|lcc)
+ gcc*|clang*|lcc)
LD_STATIC_FLAGS=-static
;;
esac
@@ -4581,6 +4579,9 @@
gcc*)
LD_STATIC_FLAGS="-static -Wl-defsym -Wl_DYNAMIC=0"
;;
+ clang*)
+ LD_STATIC_FLAGS="-static -Wl-defsym -Wl_DYNAMIC=0"
+ ;;
lcc)
# for lcc 4.1, we need to use "-Wl,".
# for lcc 4.2, we need to use "-Wl" without the comma,
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to: mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions: mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the reviews
mailing list