Changes are many, important for pkgsrc: - much higher speed (up to 30% faster for the overall build of libX11) - less magic for detection of the tag The pkgsrc integration of f2c has been changed to be more sane. libtool itself now depends on the f2c frontend to use proper auto-configuration and only fakes up the library. This part is encapsulated in mk/compiler/f2c.mk.
198 lines
6.6 KiB
Text
198 lines
6.6 KiB
Text
$NetBSD: patch-ad,v 1.35 2009/12/15 17:35:37 joerg Exp $
|
|
|
|
--- libltdl/configure.orig 2009-12-15 16:46:54.000000000 +0100
|
|
+++ libltdl/configure
|
|
@@ -4542,6 +4542,13 @@ else
|
|
lt_cv_sys_max_cmd_len=8192;
|
|
;;
|
|
|
|
+ mint*)
|
|
+ # On MiNT we can support fairly large cmd lengths, but it takes
|
|
+ # a while to run the tests, so let's restrict it to something
|
|
+ # reasonable.
|
|
+ lt_cv_sys_max_cmd_len=8192;
|
|
+ ;;
|
|
+
|
|
amigaos*)
|
|
# On AmigaOS with pdksh, this test takes hours, literally.
|
|
# So we just punt and use a minimum line length of 8192.
|
|
@@ -4967,7 +4974,7 @@ newos6*)
|
|
;;
|
|
|
|
*nto* | *qnx*)
|
|
- lt_cv_deplibs_check_method=pass_all
|
|
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|S\.a)$'
|
|
;;
|
|
|
|
openbsd*)
|
|
@@ -7286,7 +7293,10 @@ for cc_temp in $compiler""; do
|
|
*) break;;
|
|
esac
|
|
done
|
|
-cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
|
+# Return the actual command name, not our pkgsrc wrapper name because several
|
|
+# decisions are made only based on compiler names
|
|
+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi
|
|
+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
|
|
|
|
|
|
# Only perform the check for file, if the check method requires it
|
|
@@ -7596,9 +7606,11 @@ $as_echo_n "checking for $compiler optio
|
|
;;
|
|
|
|
darwin* | rhapsody*)
|
|
- # PIC is the default on this platform
|
|
+ # PIC is the default on this platform, and static linking of
|
|
+ # binaries generally doesn't work
|
|
# Common symbols not allowed in MH_DYLIB files
|
|
lt_prog_compiler_pic='-fno-common'
|
|
+ =''
|
|
;;
|
|
|
|
hpux*)
|
|
@@ -7620,6 +7632,13 @@ $as_echo_n "checking for $compiler optio
|
|
# Instead, we relocate shared libraries at runtime.
|
|
;;
|
|
|
|
+ mint*)
|
|
+ # Just because we use GCC doesn't mean we suddenly get shared libraries
|
|
+ # on systems that don't support them.
|
|
+ =no
|
|
+ enable_shared=no
|
|
+ ;;
|
|
+
|
|
msdosdjgpp*)
|
|
# Just because we use GCC doesn't mean we suddenly get shared libraries
|
|
# on systems that don't support them.
|
|
@@ -7817,6 +7836,9 @@ $as_echo_n "checking for $compiler optio
|
|
|
|
case $host_os in
|
|
# For platforms which do not support PIC, -DPIC is meaningless:
|
|
+ mint*)
|
|
+ =
|
|
+ ;;
|
|
*djgpp*)
|
|
lt_prog_compiler_pic=
|
|
;;
|
|
@@ -8316,7 +8338,7 @@ _LT_EOF
|
|
;;
|
|
|
|
netbsd*)
|
|
- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
|
+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null && echo __G95__ | $CC -cpp -E - | grep __G95__ >/dev/null; then
|
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
|
wlarc=
|
|
else
|
|
@@ -8836,6 +8858,8 @@ rm -f core conftest.err conftest.$ac_obj
|
|
;;
|
|
|
|
*nto* | *qnx*)
|
|
+ ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
|
+ ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
|
|
;;
|
|
|
|
openbsd*)
|
|
@@ -9450,6 +9474,7 @@ beos*)
|
|
bsdi[45]*)
|
|
version_type=linux
|
|
need_version=no
|
|
+ need_lib_prefix=no
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
|
@@ -9551,9 +9576,7 @@ freebsd1*)
|
|
dynamic_linker=no
|
|
;;
|
|
|
|
-freebsd* | dragonfly*)
|
|
- # DragonFly does not have aout. When/if they implement a new
|
|
- # versioning mechanism, adjust this.
|
|
+freebsd*)
|
|
if test -x /usr/bin/objformat; then
|
|
objformat=`/usr/bin/objformat`
|
|
else
|
|
@@ -9565,7 +9588,7 @@ freebsd* | dragonfly*)
|
|
version_type=freebsd-$objformat
|
|
case $version_type in
|
|
freebsd-elf*)
|
|
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
|
|
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
need_version=no
|
|
need_lib_prefix=no
|
|
;;
|
|
@@ -9588,13 +9611,24 @@ freebsd* | dragonfly*)
|
|
shlibpath_overrides_runpath=no
|
|
hardcode_into_libs=yes
|
|
;;
|
|
- *) # from 4.6 on, and DragonFly
|
|
+ *) # from 4.6 on
|
|
shlibpath_overrides_runpath=yes
|
|
hardcode_into_libs=yes
|
|
;;
|
|
esac
|
|
;;
|
|
|
|
+dragonfly*)
|
|
+ version_type=linux
|
|
+ need_version=no
|
|
+ need_lib_prefix=no
|
|
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
+ soname_spec='${libname}${release}${shared_ext}$major'
|
|
+ shlibpath_var=LD_LIBRARY_PATH
|
|
+ shlibpath_overrides_runpath=no
|
|
+ hardcode_into_libs=yes
|
|
+ ;;
|
|
+
|
|
gnu*)
|
|
version_type=linux
|
|
need_lib_prefix=no
|
|
@@ -9666,12 +9700,7 @@ interix[3-9]*)
|
|
irix5* | irix6* | nonstopux*)
|
|
case $host_os in
|
|
nonstopux*) version_type=nonstopux ;;
|
|
- *)
|
|
- if test "$lt_cv_prog_gnu_ld" = yes; then
|
|
- version_type=linux
|
|
- else
|
|
- version_type=irix
|
|
- fi ;;
|
|
+ *) version_type=irix ;;
|
|
esac
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
@@ -9762,15 +9791,14 @@ rm -f core conftest.err conftest.$ac_obj
|
|
;;
|
|
|
|
netbsd*)
|
|
- version_type=sunos
|
|
+ version_type=linux
|
|
need_lib_prefix=no
|
|
need_version=no
|
|
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
|
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
dynamic_linker='NetBSD (a.out) ld.so'
|
|
else
|
|
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
soname_spec='${libname}${release}${shared_ext}$major'
|
|
dynamic_linker='NetBSD ld.elf_so'
|
|
fi
|
|
@@ -9799,7 +9827,7 @@ newsos6)
|
|
;;
|
|
|
|
openbsd*)
|
|
- version_type=sunos
|
|
+ version_type=linux
|
|
sys_lib_dlsearch_path_spec="/usr/lib"
|
|
need_lib_prefix=no
|
|
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
|
|
@@ -9807,7 +9835,7 @@ openbsd*)
|
|
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
|
|
*) need_version=no ;;
|
|
esac
|
|
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
|
|
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
|
shlibpath_var=LD_LIBRARY_PATH
|
|
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|