[m-dev.] for review: enforce library self-containedness
Fergus Henderson
fjh at cs.mu.OZ.AU
Fri Feb 9 03:10:34 AEDT 2001
On 06-Feb-2001, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> On platforms which support it, check that there are no undefined
> symbols when linking the Mercury shared libraries.
That change exposed an existing bug:
----------
Estimated hours taken: 0.5
configure.in:
For sparc-sun-solaris2.*, use `gcc -shared -mimpure-text'
rather than `gcc -G', since the latter doesn't work with
ERROR_UNDEFINED (`-Wl,-z,defs').
Workspace: /home/venus/fjh/ws-venus2/mercury
Index: configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/configure.in,v
retrieving revision 1.245
diff -u -d -r1.245 configure.in
--- configure.in 2001/02/08 12:37:54 1.245
+++ configure.in 2001/02/08 14:28:44
@@ -2295,8 +2295,8 @@
AC_MSG_RESULT(yes)
SHARED_LIBS="$(MATH_LIB) -lc" # don't link in libgcc.a
SHARED_LIBS_SH="$MATH_LIB -lc" # don't link in libgcc.a
- LINK_SHARED_OBJ="$CC -G"
- LINK_SHARED_OBJ_SH="$CC -G"
+ LINK_SHARED_OBJ="$CC -shared -mimpure-text"
+ LINK_SHARED_OBJ_SH="$CC -shared -mimpure-text"
ERROR_UNDEFINED="-Wl,-z,defs"
EXE_RPATH_OPT="-R"
EXE_RPATH_SEP=" -R"
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list