source:
scripts/untested/autotools/patches/libtool-1.4.2-expsym-linux.patch@
e5345f18
Last change on this file since e5345f18 was d1afb9e, checked in by , 19 years ago | |
---|---|
|
|
File size: 1.6 KB |
-
libtool-1.4.2/libtool.m4
This patch makes -export-symbols and -export-symbols-regex work with GNU ld. It creates a version script rather than using -retain-symbols-file, which just selectively strips the library.
old new 1401 1401 hardcode_shlibpath_var=no 1402 1402 ;; 1403 1403 1404 linux*) 1405 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 1406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1407 supports_anon_versioning=no 1408 case `$LD -v 2>/dev/null` in 1409 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 1410 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 1411 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 1412 *\ 2.11.*) ;; # other 2.11 versions 1413 *) supports_anon_versioning=yes ;; 1414 esac 1415 if test $supports_anon_versioning = yes; then 1416 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 1417 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 1418 $echo "local: *; };" >> $output_objdir/$libname.ver~ 1419 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 1420 else 1421 $archive_expsym_cmds="$archive_cmds" 1422 fi 1423 else 1424 ld_shlibs=no 1425 fi 1426 ;; 1427 1404 1428 *) 1405 1429 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 1406 1430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Note:
See TracBrowser
for help on using the repository browser.