openbsd-ports/databases/gdbm/patches/patch-ltconfig
brad 0aaeb62bc1 - rename patches
- sync libtool patches
2001-08-26 23:45:18 +00:00

52 lines
1.4 KiB
Plaintext

--- ltconfig.orig Tue May 18 20:17:36 1999
+++ ltconfig Sun Aug 26 19:20:59 2001
@@ -348,7 +348,14 @@ fi
if test -n "$RANLIB"; then
old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib"
- old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds"
+ case "$host_os" in
+ openbsd*)
+ old_postinstall_cmds="\$RANLIB -t \$oldlib;$old_postinstall_cmds"
+ ;;
+ *)
+ old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds"
+ ;;
+ esac
fi
# Check to see if we are using GCC.
@@ -702,7 +709,7 @@ hardcode_shlibpath_var=unsupported
runpath_var=
case "$host_os" in
-amigaos* | sunos4*)
+amigaos* | sunos4* | openbsd*)
# On these operating systems, we should treat GNU ld like the system ld.
gnu_ld_acts_native=yes
;;
@@ -815,10 +822,21 @@ else
;;
openbsd*)
- archive_cmds='$LD -Bshareable -o $lib$libobjs'
- hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
hardcode_shlibpath_var=no
+ case "$host_os" in
+ 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 test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ export_dynamic_flag_spec='${wl}-E'
+ fi
+ ;;
+ esac
;;
os2*)