]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* m4/libtool.m4 [solaris] (_LT_LINKER_SHLIBS): Add '${wl}-z ${wl}text'
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 20 Dec 2004 08:15:36 +0000 (08:15 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 20 Dec 2004 08:15:36 +0000 (08:15 +0000)
to archive_cmds and archive_expsyms_cmds.  I.e., do not allow nopic in
shared libraries.

ChangeLog
m4/libtool.m4

index 23c93f7cb4e68d3c8bacb01d53ecc3c52616490c..a80f6d1bd36af2117d8e507eb45939d556380756 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2004-12-20  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
 
+       * m4/libtool.m4 [solaris] (_LT_LINKER_SHLIBS): Add '${wl}-z ${wl}text'
+       to archive_cmds and archive_expsyms_cmds.  I.e., do not allow nopic in
+       shared libraries.
+
        * m4/libtool.m4 [solaris] (_LT_LINKER_SHLIBS): Change no_undefined_flag
        back to ' -z defs'.  Problems with linking against libgcc.a will have
        to be resolved differently.
index b735e0a60032ad4a2b3b508b9b7f2042aab24c0e..f72338ebc677f3b95cfb1f4c24e432c9e5a4c231 100644 (file)
@@ -4151,9 +4151,9 @@ _LT_EOF
     solaris*)
       _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
       if test "$GCC" = yes; then
-       _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+       _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
        _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$ECHO "local: *; };" >> $lib.exp~
-         $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+         $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
       else
        case `$CC -V 2>&1` in
        *"Compilers 5.0"*)