From 5068218e2f17f38c7d926a1c57506e45abbb85c3 Mon Sep 17 00:00:00 2001 From: brad Date: Sun, 14 Jan 2001 17:50:33 +0000 Subject: [PATCH] teach libtool about export_dynamic_flag_spec for ELF-based archs. --- devel/gettext/patches/patch-ltconfig | 11 +++++++---- graphics/jpeg/patches/patch-ltconfig | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/devel/gettext/patches/patch-ltconfig b/devel/gettext/patches/patch-ltconfig index e27e7c94f61..806015267b4 100644 --- a/devel/gettext/patches/patch-ltconfig +++ b/devel/gettext/patches/patch-ltconfig @@ -1,5 +1,5 @@ ---- ltconfig.orig Mon Apr 27 17:22:35 1998 -+++ ltconfig Fri Oct 20 09:35:35 2000 +--- ltconfig.orig Wed Mar 25 10:25:39 1998 ++++ ltconfig Sat Jan 13 20:18:19 2001 @@ -702,7 +702,7 @@ runpath_var= @@ -9,7 +9,7 @@ # On these operating systems, we should treat GNU ld like the system ld. gnu_ld_acts_native=yes ;; -@@ -815,10 +815,18 @@ +@@ -815,10 +815,21 @@ ;; openbsd*) @@ -18,13 +18,16 @@ hardcode_direct=yes hardcode_shlibpath_var=no + case "$host_os" in -+ openbsd2.[01234567]) ++ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib$libobjs' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib$libobjs' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ++ if [ "`/usr/bin/file /usr/lib/libc.so.* | grep ELF`" != "" ]; then ++ export_dynamic_flag_spec='${wl}-E' ++ fi + ;; + esac ;; diff --git a/graphics/jpeg/patches/patch-ltconfig b/graphics/jpeg/patches/patch-ltconfig index e27e7c94f61..806015267b4 100644 --- a/graphics/jpeg/patches/patch-ltconfig +++ b/graphics/jpeg/patches/patch-ltconfig @@ -1,5 +1,5 @@ ---- ltconfig.orig Mon Apr 27 17:22:35 1998 -+++ ltconfig Fri Oct 20 09:35:35 2000 +--- ltconfig.orig Wed Mar 25 10:25:39 1998 ++++ ltconfig Sat Jan 13 20:18:19 2001 @@ -702,7 +702,7 @@ runpath_var= @@ -9,7 +9,7 @@ # On these operating systems, we should treat GNU ld like the system ld. gnu_ld_acts_native=yes ;; -@@ -815,10 +815,18 @@ +@@ -815,10 +815,21 @@ ;; openbsd*) @@ -18,13 +18,16 @@ hardcode_direct=yes hardcode_shlibpath_var=no + case "$host_os" in -+ openbsd2.[01234567]) ++ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib$libobjs' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib$libobjs' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ++ if [ "`/usr/bin/file /usr/lib/libc.so.* | grep ELF`" != "" ]; then ++ export_dynamic_flag_spec='${wl}-E' ++ fi + ;; + esac ;;