source: scripts/untested/autotools/patches/libtool-1.4.2-expsym-linux.patch@ 41a2794

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 41a2794 was d1afb9e, checked in by Jim Gifford <clfs@…>, 19 years ago

r587@server (orig r585): ryan | 2005-08-05 21:51:35 -0700
Add a sane autotools build to the mix.
Blatantly stolen from gentoo...



  • Property mode set to 100644
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  
    14011401    hardcode_shlibpath_var=no
    14021402    ;;
    14031403
     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~
     1417cat $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
    14041428  *)
    14051429    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
    14061430      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Note: See TracBrowser for help on using the repository browser.