[m-rev.] for review: don't check for static linking on linux

Peter Wang novalazy at gmail.com
Wed Jun 16 15:53:51 AEST 2010


Branches: main, 10.04

Don't pass `--linkage static' on Linux hosts when checking for a recent mmc.
Some distributions no longer install static C libraries by default (e.g.
Fedora).  I also happen to be working on a Ubuntu Linux machine which was
recently upgraded to a broken version of binutils that breaks static
executables on stripping (binutils PR 10337).

The log message for the original change to force static linking says it was
needed for MSVC (for some reason).  We should consider enabling static linking
only where it is known to be required.

configure.in:
        As above.

diff --git a/configure.in b/configure.in
index dcfd98a..d43438e 100644
--- a/configure.in
+++ b/configure.in
@@ -260,6 +260,7 @@ case "$host" in
     i*86-*-solaris2.*)  link_static_opt= ;;
     *solaris2.10)       link_static_opt= ;;
     *apple*darwin*)     link_static_opt= ;;
+    *linux*)            link_static_opt= ;;
     *)                  link_static_opt="--linkage static" ;;
 esac
 

--------------------------------------------------------------------------
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