teach libtool about export_dynamic_flag_spec for ELF-based archs.

This commit is contained in:
brad 2001-01-19 17:59:16 +00:00
parent fd0463ba70
commit d5273f9777

View File

@ -1,5 +1,5 @@
--- ltconfig.orig Sat May 27 07:15:00 2000
+++ ltconfig Sat Oct 21 13:46:37 2000
+++ ltconfig Fri Jan 19 12:57:33 2001
@@ -1105,6 +1105,9 @@
with_gnu_ld=no
fi
@ -10,7 +10,7 @@
esac
@@ -1402,10 +1405,18 @@
@@ -1402,10 +1405,21 @@
;;
openbsd*)
@ -19,19 +19,22 @@
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 $deplibs $linkopts'
+ hardcode_libdir_flag_spec='-R$libdir'
+ ;;
+ *)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts'
+ 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
;;
os2*)
@@ -2021,13 +2032,10 @@
@@ -2021,13 +2035,10 @@
openbsd*)
version_type=sunos