teach libtool about export_dynamic_flag_spec for ELF-based archs.
This commit is contained in:
parent
47e0060b71
commit
5068218e2f
@ -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
|
||||
;;
|
||||
|
@ -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
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user