teach libtool about export_dynamic_flag_spec for ELF-based archs.

This commit is contained in:
brad 2001-01-14 18:29:35 +00:00
parent adb7f02b7e
commit c1eebc4d21

View File

@ -1,5 +1,5 @@
--- ltconfig.orig Fri Feb 4 13:30:02 2000
+++ ltconfig Tue Oct 24 18:48:01 2000
+++ ltconfig Fri Jan 12 05:12:36 2001
@@ -1105,6 +1105,9 @@
with_gnu_ld=no
fi
@ -10,7 +10,7 @@
esac
@@ -1396,10 +1399,18 @@
@@ -1396,10 +1399,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*)
@@ -1997,13 +2008,10 @@
@@ -1997,13 +2011,10 @@
openbsd*)
version_type=sunos