Sun Jun 15 14:42:05 2014 UTC ()
Don't use -nostdlib for C++ with GCC on Solaris. Bump revision of
libtool-base.


(joerg)
diff -r1.93 -r1.94 pkgsrc/devel/libtool/distinfo
diff -r1.108 -r1.109 pkgsrc/devel/libtool-base/Makefile
diff -r1.40 -r1.41 pkgsrc/devel/libtool/patches/manual-libtool.m4
diff -r1.80 -r1.81 pkgsrc/devel/libtool/patches/patch-ab

cvs diff -r1.93 -r1.94 pkgsrc/devel/libtool/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/libtool/distinfo 2014/05/11 13:23:03 1.93
+++ pkgsrc/devel/libtool/distinfo 2014/06/15 14:42:05 1.94
@@ -1,9 +1,9 @@ @@ -1,9 +1,9 @@
1$NetBSD: distinfo,v 1.93 2014/05/11 13:23:03 taca Exp $ 1$NetBSD: distinfo,v 1.94 2014/06/15 14:42:05 joerg Exp $
2 2
3SHA1 (libtool-2.4.2.tar.gz) = 22b71a8b5ce3ad86e1094e7285981cae10e6ff88 3SHA1 (libtool-2.4.2.tar.gz) = 22b71a8b5ce3ad86e1094e7285981cae10e6ff88
4RMD160 (libtool-2.4.2.tar.gz) = b7153f3f1e1c50d8c04787cafccd4e19af62ec7d 4RMD160 (libtool-2.4.2.tar.gz) = b7153f3f1e1c50d8c04787cafccd4e19af62ec7d
5Size (libtool-2.4.2.tar.gz) = 2632347 bytes 5Size (libtool-2.4.2.tar.gz) = 2632347 bytes
6SHA1 (patch-aa) = 8fa167bebf27b7bc3008edd61408a0aede6bdf69 6SHA1 (patch-aa) = 8fa167bebf27b7bc3008edd61408a0aede6bdf69
7SHA1 (patch-ab) = cf6e8852b6c9eb04256904085f4ee6fefc470a02 7SHA1 (patch-ab) = ccb33a6e3075908ab7ecf56836349baec8ac85ca
8SHA1 (patch-ac) = 108989e3f1ee199fa8e8a9dc7331d360c586a800 8SHA1 (patch-ac) = 108989e3f1ee199fa8e8a9dc7331d360c586a800
9SHA1 (patch-ad) = 48c3832e9205777832ef2a6334033ff6099be8a4 9SHA1 (patch-ad) = 48c3832e9205777832ef2a6334033ff6099be8a4

cvs diff -r1.108 -r1.109 pkgsrc/devel/libtool-base/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/libtool-base/Makefile 2014/05/10 15:32:08 1.108
+++ pkgsrc/devel/libtool-base/Makefile 2014/06/15 14:42:05 1.109
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.108 2014/05/10 15:32:08 joerg Exp $ 1# $NetBSD: Makefile,v 1.109 2014/06/15 14:42:05 joerg Exp $
2 2
3########################################################################### 3###########################################################################
4########################################################################### 4###########################################################################
5# 5#
6# HEADS UP! DO NOT CHANGE THE VERSION OR PKGREVISION WITHOUT READING THIS: 6# HEADS UP! DO NOT CHANGE THE VERSION OR PKGREVISION WITHOUT READING THIS:
7# 7#
8########################################################################### 8###########################################################################
9########################################################################### 9###########################################################################
10# 10#
11# This package is maintained specially in order to preserve pkgsrc 11# This package is maintained specially in order to preserve pkgsrc
12# specific OS changes that diverge from the "out of the box" libtool. 12# specific OS changes that diverge from the "out of the box" libtool.
13# In order to keep this package in a maintainable condition, the .m4 files 13# In order to keep this package in a maintainable condition, the .m4 files
14# must be manipulated in order to generate the patch-* files. 14# must be manipulated in order to generate the patch-* files.
@@ -16,27 +16,27 @@ @@ -16,27 +16,27 @@
16# See devel/libtool/patches/manual.README for instructions on how to make 16# See devel/libtool/patches/manual.README for instructions on how to make
17# these patch files properly; otherwise your changes WILL be lost on the 17# these patch files properly; otherwise your changes WILL be lost on the
18# next libtool update. 18# next libtool update.
19# 19#
20# DO NOT MAKE CHANGES TO patch-ab OR patch-ad WITHOUT FOLLOWING THESE 20# DO NOT MAKE CHANGES TO patch-ab OR patch-ad WITHOUT FOLLOWING THESE
21# INSTRUCTIONS. There are no exceptions to this rule. 21# INSTRUCTIONS. There are no exceptions to this rule.
22# 22#
23########################################################################### 23###########################################################################
24########################################################################### 24###########################################################################
25 25
26.include "../../devel/libtool/Makefile.common" 26.include "../../devel/libtool/Makefile.common"
27 27
28PKGNAME= ${DISTNAME:S/-/-base-/} 28PKGNAME= ${DISTNAME:S/-/-base-/}
29PKGREVISION= 6 29PKGREVISION= 7
30SVR4_PKGNAME= ltoob 30SVR4_PKGNAME= ltoob
31 31
32COMMENT= Generic shared library support script (the script itself) 32COMMENT= Generic shared library support script (the script itself)
33 33
34CONFLICTS+= libtool<=1.3.5nb11 34CONFLICTS+= libtool<=1.3.5nb11
35 35
36TEST_TARGET= check 36TEST_TARGET= check
37 37
38OVERRIDE_DIRDEPTH.install-sh= 1 38OVERRIDE_DIRDEPTH.install-sh= 1
39 39
40.if ${OPSYS} == "AIX" 40.if ${OPSYS} == "AIX"
41 41
42# always build libraries and executables that use the runtime linker. 42# always build libraries and executables that use the runtime linker.

cvs diff -r1.40 -r1.41 pkgsrc/devel/libtool/patches/manual-libtool.m4 (expand / switch to unified diff)

--- pkgsrc/devel/libtool/patches/manual-libtool.m4 2014/05/10 15:32:08 1.40
+++ pkgsrc/devel/libtool/patches/manual-libtool.m4 2014/06/15 14:42:05 1.41
@@ -1,19 +1,17 @@ @@ -1,19 +1,17 @@
1$NetBSD: manual-libtool.m4,v 1.40 2014/05/10 15:32:08 joerg Exp $ 1$NetBSD: manual-libtool.m4,v 1.41 2014/06/15 14:42:05 joerg Exp $
2 2
3--- libltdl/m4/libtool.m4.orig 2011-10-17 10:17:05.000000000 +0000 3--- libltdl/m4/libtool.m4.orig 2011-10-17 10:17:05.000000000 +0000
4+++ libltdl/m4/libtool.m4 4+++ libltdl/m4/libtool.m4
5--- libtool.m4.orig 2011-10-17 10:17:05.000000000 +0000 
6+++ libtool.m4 
7@@ -123,7 +123,10 @@ m4_defun([_LT_CC_BASENAME], 5@@ -123,7 +123,10 @@ m4_defun([_LT_CC_BASENAME],
8 *) break;; 6 *) break;;
9 esac 7 esac
10 done 8 done
11-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12+# Return the actual command name, not our pkgsrc wrapper name because several 10+# Return the actual command name, not our pkgsrc wrapper name because several
13+# decisions are made only based on compiler names 11+# decisions are made only based on compiler names
14+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi 12+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi
15+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16 ]) 14 ])
17  15
18  16
19@@ -1098,7 +1101,7 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES], 17@@ -1098,7 +1101,7 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
@@ -414,37 +412,49 @@ $NetBSD: manual-libtool.m4,v 1.40 2014/0 @@ -414,37 +412,49 @@ $NetBSD: manual-libtool.m4,v 1.40 2014/0
414- fi 412- fi
415- # Workaround some broken pre-1.5 toolchains 413- # Workaround some broken pre-1.5 toolchains
416- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 414- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
417+ _LT_TAGVAR(ld_shlibs, $1)=yes 415+ _LT_TAGVAR(ld_shlibs, $1)=yes
418+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 416+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
419+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 417+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
420+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 418+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
421+ _LT_TAGVAR(hardcode_direct, $1)=yes 419+ _LT_TAGVAR(hardcode_direct, $1)=yes
422+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 420+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
423+ output_verbose_link_cmd=func_echo_all 421+ output_verbose_link_cmd=func_echo_all
424 ;; 422 ;;
425  423
426 *nto* | *qnx*) 424 *nto* | *qnx*)
427@@ -6740,9 +6851,9 @@ if test "$_lt_caught_CXX_error" != yes;  425@@ -6739,27 +6850,14 @@ if test "$_lt_caught_CXX_error" != yes;
 426 # GNU C++ compiler with Solaris linker
428 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 427 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
429 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 428 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
430 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 429- if $CC --version | $GREP -v '^2\.7' > /dev/null; then
431- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 430- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
432+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 431- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
433 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 
434- $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 432- $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
435+ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 433-
436  434- # Commands to make compiler produce verbose output that lists
437 # Commands to make compiler produce verbose output that lists 435- # what "hidden" libraries, object files and flags are used when
438 # what "hidden" libraries, object files and flags are used when 436- # linking a shared library.
439@@ -6751,9 +6862,9 @@ if test "$_lt_caught_CXX_error" != yes;  437- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
440 else 438- else
441 # g++ 2.7 appears to require `-G' NOT `-shared' on this 439- # g++ 2.7 appears to require `-G' NOT `-shared' on this
442 # platform. 440- # platform.
443- _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 441- _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
444+ _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 442- _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
445 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 
446- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 443- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
447+ $CC -G -nostdlib ${wl}-M $wl$lib.exp $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 444-
 445- # Commands to make compiler produce verbose output that lists
 446- # what "hidden" libraries, object files and flags are used when
 447- # linking a shared library.
 448- output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 449- fi
 450+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 451+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 452+ $CC -shared $pic_flag ${wl}-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 453+
 454+ # Commands to make compiler produce verbose output that lists
 455+ # what "hidden" libraries, object files and flags are used when
 456+ # linking a shared library.
 457+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
448  458
449 # Commands to make compiler produce verbose output that lists 459 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
450 # what "hidden" libraries, object files and flags are used when 460 case $host_os in

cvs diff -r1.80 -r1.81 pkgsrc/devel/libtool/patches/Attic/patch-ab (expand / switch to unified diff)

--- pkgsrc/devel/libtool/patches/Attic/patch-ab 2014/05/10 15:32:08 1.80
+++ pkgsrc/devel/libtool/patches/Attic/patch-ab 2014/06/15 14:42:05 1.81
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1$NetBSD: patch-ab,v 1.80 2014/05/10 15:32:08 joerg Exp $ 1$NetBSD: patch-ab,v 1.81 2014/06/15 14:42:05 joerg Exp $
2 2
3--- configure.orig 2014-03-06 15:38:07.000000000 +0000 3--- configure.orig 2014-06-15 14:27:26.000000000 +0000
4+++ configure 4+++ configure
5@@ -5335,7 +5335,7 @@ else 5@@ -5335,7 +5335,7 @@ else
6 lt_cv_sys_max_cmd_len=8192; 6 lt_cv_sys_max_cmd_len=8192;
7 ;; 7 ;;
8  8
9- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 9- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10+ netbsd* | freebsd* | openbsd* | mirbsd* | darwin* | dragonfly*) 10+ netbsd* | freebsd* | openbsd* | mirbsd* | darwin* | dragonfly*)
11 # This has been around since 386BSD, at least. Likely further. 11 # This has been around since 386BSD, at least. Likely further.
12 if test -x /sbin/sysctl; then 12 if test -x /sbin/sysctl; then
13 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 13 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14@@ -5829,12 +5829,19 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu) 14@@ -5829,12 +5829,19 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
15 lt_cv_deplibs_check_method=pass_all 15 lt_cv_deplibs_check_method=pass_all
16 ;; 16 ;;
@@ -416,146 +416,158 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3 @@ -416,146 +416,158 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3
416- fi 416- fi
417- # Workaround some broken pre-1.5 toolchains 417- # Workaround some broken pre-1.5 toolchains
418- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 418- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
419+ ld_shlibs_CXX=yes 419+ ld_shlibs_CXX=yes
420+ archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 420+ archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
421+ archive_expsym_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 421+ archive_expsym_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
422+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 422+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
423+ hardcode_direct_CXX=yes 423+ hardcode_direct_CXX=yes
424+ hardcode_shlibpath_var_CXX=no 424+ hardcode_shlibpath_var_CXX=no
425+ output_verbose_link_cmd=func_echo_all 425+ output_verbose_link_cmd=func_echo_all
426 ;; 426 ;;
427  427
428 *nto* | *qnx*) 428 *nto* | *qnx*)
429@@ -14853,9 +14961,9 @@ fi 429@@ -14852,27 +14960,14 @@ fi
 430 # GNU C++ compiler with Solaris linker
430 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 431 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
431 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 432 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
432 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 433- if $CC --version | $GREP -v '^2\.7' > /dev/null; then
433- archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 434- archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
434+ archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 435- archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
435 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 
436- $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 436- $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
437+ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 437-
438  438- # Commands to make compiler produce verbose output that lists
439 # Commands to make compiler produce verbose output that lists 439- # what "hidden" libraries, object files and flags are used when
440 # what "hidden" libraries, object files and flags are used when 440- # linking a shared library.
441@@ -14864,9 +14972,9 @@ fi 441- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
442 else 442- else
443 # g++ 2.7 appears to require `-G' NOT `-shared' on this 443- # g++ 2.7 appears to require `-G' NOT `-shared' on this
444 # platform. 444- # platform.
445- archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 445- archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
446+ archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 446- archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
447 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 
448- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 447- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
449+ $CC -G -nostdlib ${wl}-M $wl$lib.exp $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 448-
450  449- # Commands to make compiler produce verbose output that lists
451 # Commands to make compiler produce verbose output that lists 450- # what "hidden" libraries, object files and flags are used when
452 # what "hidden" libraries, object files and flags are used when 451- # linking a shared library.
453@@ -15236,9 +15344,15 @@ lt_prog_compiler_static_CXX= 452- output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 453- fi
 454+ archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 455+ archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 456+ $CC -shared $pic_flag ${wl}-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 457+
 458+ # Commands to make compiler produce verbose output that lists
 459+ # what "hidden" libraries, object files and flags are used when
 460+ # linking a shared library.
 461+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 462
 463 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 464 case $host_os in
 465@@ -15236,9 +15331,15 @@ lt_prog_compiler_static_CXX=
454 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 466 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
455 ;; 467 ;;
456 darwin* | rhapsody*) 468 darwin* | rhapsody*)
457- # PIC is the default on this platform 469- # PIC is the default on this platform
458+ # PIC is the default on this platform, and static linking of 470+ # PIC is the default on this platform, and static linking of
459+ # binaries generally doesn't work 471+ # binaries generally doesn't work
460 # Common symbols not allowed in MH_DYLIB files 472 # Common symbols not allowed in MH_DYLIB files
461 lt_prog_compiler_pic_CXX='-fno-common' 473 lt_prog_compiler_pic_CXX='-fno-common'
462+ lt_prog_compiler_static_CXX='' 474+ lt_prog_compiler_static_CXX=''
463+ ;; 475+ ;;
464+ *mint*) 476+ *mint*)
465+ # FreeMiNT does not support shared libraries at all 477+ # FreeMiNT does not support shared libraries at all
466+ lt_prog_compiler_pic_CXX= 478+ lt_prog_compiler_pic_CXX=
467 ;; 479 ;;
468 *djgpp*) 480 *djgpp*)
469 # DJGPP does not support shared libraries at all 481 # DJGPP does not support shared libraries at all
470@@ -15316,6 +15430,9 @@ lt_prog_compiler_static_CXX= 482@@ -15316,6 +15417,9 @@ lt_prog_compiler_static_CXX=
471 ;; 483 ;;
472 esac 484 esac
473 ;; 485 ;;
474+ mint*) 486+ mint*)
475+ # FreeMiNT uses GNU C++ 487+ # FreeMiNT uses GNU C++
476+ ;; 488+ ;;
477 freebsd* | dragonfly*) 489 freebsd* | dragonfly*)
478 # FreeBSD uses GNU C++ 490 # FreeBSD uses GNU C++
479 ;; 491 ;;
480@@ -15513,6 +15630,9 @@ lt_prog_compiler_static_CXX= 492@@ -15513,6 +15617,9 @@ lt_prog_compiler_static_CXX=
481  493
482 case $host_os in 494 case $host_os in
483 # For platforms which do not support PIC, -DPIC is meaningless: 495 # For platforms which do not support PIC, -DPIC is meaningless:
484+ mint*) 496+ mint*)
485+ lt_prog_compiler_pic_CXX= 497+ lt_prog_compiler_pic_CXX=
486+ ;; 498+ ;;
487 *djgpp*) 499 *djgpp*)
488 lt_prog_compiler_pic_CXX= 500 lt_prog_compiler_pic_CXX=
489 ;; 501 ;;
490@@ -16184,7 +16304,7 @@ dgux*) 502@@ -16184,7 +16291,7 @@ dgux*)
491 shlibpath_var=LD_LIBRARY_PATH 503 shlibpath_var=LD_LIBRARY_PATH
492 ;; 504 ;;
493  505
494-freebsd* | dragonfly*) 506-freebsd* | dragonfly*)
495+freebsd*) 507+freebsd*)
496 # DragonFly does not have aout. When/if they implement a new 508 # DragonFly does not have aout. When/if they implement a new
497 # versioning mechanism, adjust this. 509 # versioning mechanism, adjust this.
498 if test -x /usr/bin/objformat; then 510 if test -x /usr/bin/objformat; then
499@@ -16198,7 +16318,7 @@ freebsd* | dragonfly*) 511@@ -16198,7 +16305,7 @@ freebsd* | dragonfly*)
500 version_type=freebsd-$objformat 512 version_type=freebsd-$objformat
501 case $version_type in 513 case $version_type in
502 freebsd-elf*) 514 freebsd-elf*)
503- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 515- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
504+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 516+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
505 need_version=no 517 need_version=no
506 need_lib_prefix=no 518 need_lib_prefix=no
507 ;; 519 ;;
508@@ -16221,13 +16341,24 @@ freebsd* | dragonfly*) 520@@ -16221,13 +16328,24 @@ freebsd* | dragonfly*)
509 shlibpath_overrides_runpath=no 521 shlibpath_overrides_runpath=no
510 hardcode_into_libs=yes 522 hardcode_into_libs=yes
511 ;; 523 ;;
512- *) # from 4.6 on, and DragonFly 524- *) # from 4.6 on, and DragonFly
513+ *) # from 4.6 on 525+ *) # from 4.6 on
514 shlibpath_overrides_runpath=yes 526 shlibpath_overrides_runpath=yes
515 hardcode_into_libs=yes 527 hardcode_into_libs=yes
516 ;; 528 ;;
517 esac 529 esac
518 ;; 530 ;;
519  531
520+dragonfly*) 532+dragonfly*)
521+ version_type=linux 533+ version_type=linux
522+ need_version=no 534+ need_version=no
523+ need_lib_prefix=no 535+ need_lib_prefix=no
524+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 536+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
525+ soname_spec='${libname}${release}${shared_ext}$major' 537+ soname_spec='${libname}${release}${shared_ext}$major'
526+ shlibpath_var=LD_LIBRARY_PATH 538+ shlibpath_var=LD_LIBRARY_PATH
527+ shlibpath_overrides_runpath=no 539+ shlibpath_overrides_runpath=no
528+ hardcode_into_libs=yes 540+ hardcode_into_libs=yes
529+ ;; 541+ ;;
530+ 542+
531 gnu*) 543 gnu*)
532 version_type=linux # correct to gnu/linux during the next big refactor 544 version_type=linux # correct to gnu/linux during the next big refactor
533 need_lib_prefix=no 545 need_lib_prefix=no
534@@ -16315,12 +16446,7 @@ interix[3-9]*) 546@@ -16315,12 +16433,7 @@ interix[3-9]*)
535 irix5* | irix6* | nonstopux*) 547 irix5* | irix6* | nonstopux*)
536 case $host_os in 548 case $host_os in
537 nonstopux*) version_type=nonstopux ;; 549 nonstopux*) version_type=nonstopux ;;
538- *) 550- *)
539- if test "$lt_cv_prog_gnu_ld" = yes; then 551- if test "$lt_cv_prog_gnu_ld" = yes; then
540- version_type=linux # correct to gnu/linux during the next big refactor 552- version_type=linux # correct to gnu/linux during the next big refactor
541- else 553- else
542- version_type=irix 554- version_type=irix
543- fi ;; 555- fi ;;
544+ *) version_type=irix ;; 556+ *) version_type=irix ;;
545 esac 557 esac
546 need_lib_prefix=no 558 need_lib_prefix=no
547 need_version=no 559 need_version=no
548@@ -16419,19 +16545,36 @@ fi 560@@ -16419,19 +16532,36 @@ fi
549 dynamic_linker='GNU/Linux ld.so' 561 dynamic_linker='GNU/Linux ld.so'
550 ;; 562 ;;
551  563
552+midnightbsd*) 564+midnightbsd*)
553+ version_type=linux 565+ version_type=linux
554+ need_lib_prefix=no 566+ need_lib_prefix=no
555+ need_version=no 567+ need_version=no
556+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${release}${shared_ext} $libname${shared_ext}' 568+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${release}${shared_ext} $libname${shared_ext}'
557+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 569+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
558+ shlibpath_var=LD_LIBRARY_PATH 570+ shlibpath_var=LD_LIBRARY_PATH
559+ shlibpath_overrides_runpath=yes 571+ shlibpath_overrides_runpath=yes
560+ hardcode_into_libs=yes 572+ hardcode_into_libs=yes
561+ ;; 573+ ;;
@@ -582,115 +594,115 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3 @@ -582,115 +594,115 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3
582- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 594- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
583- dynamic_linker='NetBSD (a.out) ld.so' 595- dynamic_linker='NetBSD (a.out) ld.so'
584- else 596- else
585- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 597- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
586- soname_spec='${libname}${release}${shared_ext}$major' 598- soname_spec='${libname}${release}${shared_ext}$major'
587- dynamic_linker='NetBSD ld.elf_so' 599- dynamic_linker='NetBSD ld.elf_so'
588- fi 600- fi
589+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 601+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
590+ soname_spec='${libname}${release}${shared_ext}$major' 602+ soname_spec='${libname}${release}${shared_ext}$major'
591+ dynamic_linker='NetBSD ld.elf_so' 603+ dynamic_linker='NetBSD ld.elf_so'
592 shlibpath_var=LD_LIBRARY_PATH 604 shlibpath_var=LD_LIBRARY_PATH
593 shlibpath_overrides_runpath=yes 605 shlibpath_overrides_runpath=yes
594 hardcode_into_libs=yes 606 hardcode_into_libs=yes
595@@ -16457,7 +16600,7 @@ newsos6) 607@@ -16457,7 +16587,7 @@ newsos6)
596 ;; 608 ;;
597  609
598 openbsd*) 610 openbsd*)
599- version_type=sunos 611- version_type=sunos
600+ version_type=linux 612+ version_type=linux
601 sys_lib_dlsearch_path_spec="/usr/lib" 613 sys_lib_dlsearch_path_spec="/usr/lib"
602 need_lib_prefix=no 614 need_lib_prefix=no
603 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 615 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
604@@ -16465,7 +16608,7 @@ openbsd*) 616@@ -16465,7 +16595,7 @@ openbsd*)
605 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 617 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
606 *) need_version=no ;; 618 *) need_version=no ;;
607 esac 619 esac
608- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 620- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
609+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 621+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
611 shlibpath_var=LD_LIBRARY_PATH 623 shlibpath_var=LD_LIBRARY_PATH
612 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 624 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
613@@ -17039,7 +17182,10 @@ $RM -r conftest* 625@@ -17039,7 +17169,10 @@ $RM -r conftest*
614 *) break;; 626 *) break;;
615 esac 627 esac
616 done 628 done
617-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 629-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
618+# Return the actual command name, not our pkgsrc wrapper name because several 630+# Return the actual command name, not our pkgsrc wrapper name because several
619+# decisions are made only based on compiler names 631+# decisions are made only based on compiler names
620+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi 632+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi
621+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 633+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
622  634
623 GCC=$G77 635 GCC=$G77
624 if test -n "$compiler"; then 636 if test -n "$compiler"; then
625@@ -17131,9 +17277,16 @@ lt_prog_compiler_static_F77= 637@@ -17131,9 +17264,16 @@ lt_prog_compiler_static_F77=
626 ;; 638 ;;
627  639
628 darwin* | rhapsody*) 640 darwin* | rhapsody*)
629- # PIC is the default on this platform 641- # PIC is the default on this platform
630+ # PIC is the default on this platform, and static linking of 642+ # PIC is the default on this platform, and static linking of
631+ # binaries generally doesn't work 643+ # binaries generally doesn't work
632 # Common symbols not allowed in MH_DYLIB files 644 # Common symbols not allowed in MH_DYLIB files
633 lt_prog_compiler_pic_F77='-fno-common' 645 lt_prog_compiler_pic_F77='-fno-common'
634+ lt_prog_compiler_static_F77='' 646+ lt_prog_compiler_static_F77=''
635+ ;; 647+ ;;
636+ 648+
637+ *mint*) 649+ *mint*)
638+ # FreeMiNT does not support shared libraries at all 650+ # FreeMiNT does not support shared libraries at all
639+ lt_prog_compiler_pic_F77= 651+ lt_prog_compiler_pic_F77=
640 ;; 652 ;;
641  653
642 haiku*) 654 haiku*)
643@@ -17161,6 +17314,13 @@ lt_prog_compiler_static_F77= 655@@ -17161,6 +17301,13 @@ lt_prog_compiler_static_F77=
644 # Instead, we relocate shared libraries at runtime. 656 # Instead, we relocate shared libraries at runtime.
645 ;; 657 ;;
646  658
647+ mint*) 659+ mint*)
648+ # Just because we use GCC doesn't mean we suddenly get shared libraries 660+ # Just because we use GCC doesn't mean we suddenly get shared libraries
649+ # on systems that don't support them. 661+ # on systems that don't support them.
650+ lt_prog_compiler_can_build_shared_F77=no 662+ lt_prog_compiler_can_build_shared_F77=no
651+ enable_shared=no 663+ enable_shared=no
652+ ;; 664+ ;;
653+ 665+
654 msdosdjgpp*) 666 msdosdjgpp*)
655 # Just because we use GCC doesn't mean we suddenly get shared libraries 667 # Just because we use GCC doesn't mean we suddenly get shared libraries
656 # on systems that don't support them. 668 # on systems that don't support them.
657@@ -17313,6 +17473,15 @@ lt_prog_compiler_static_F77= 669@@ -17313,6 +17460,15 @@ lt_prog_compiler_static_F77=
658 esac 670 esac
659 ;; 671 ;;
660  672
661+ mirbsd*) 673+ mirbsd*)
662+ case $cc_basename in 674+ case $cc_basename in
663+ # pkgsrc f77 is f2c, which uses gcc underneath. 675+ # pkgsrc f77 is f2c, which uses gcc underneath.
664+ f77*) 676+ f77*)
665+ lt_prog_compiler_wl_F77='-Wl,' 677+ lt_prog_compiler_wl_F77='-Wl,'
666+ ;; 678+ ;;
667+ esac 679+ esac
668+ ;; 680+ ;;
669+ 681+
670 newsos6) 682 newsos6)
671 lt_prog_compiler_pic_F77='-KPIC' 683 lt_prog_compiler_pic_F77='-KPIC'
672 lt_prog_compiler_static_F77='-Bstatic' 684 lt_prog_compiler_static_F77='-Bstatic'
673@@ -17388,6 +17557,9 @@ lt_prog_compiler_static_F77= 685@@ -17388,6 +17544,9 @@ lt_prog_compiler_static_F77=
674  686
675 case $host_os in 687 case $host_os in
676 # For platforms which do not support PIC, -DPIC is meaningless: 688 # For platforms which do not support PIC, -DPIC is meaningless:
677+ mint*) 689+ mint*)
678+ lt_prog_compiler_pic_F77= 690+ lt_prog_compiler_pic_F77=
679+ ;; 691+ ;;
680 *djgpp*) 692 *djgpp*)
681 lt_prog_compiler_pic_F77= 693 lt_prog_compiler_pic_F77=
682 ;; 694 ;;
683@@ -17918,16 +18090,29 @@ _LT_EOF 695@@ -17918,16 +18077,29 @@ _LT_EOF
684 fi 696 fi
685 ;; 697 ;;
686  698
687- netbsd*) 699- netbsd*)
688- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 700- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
689- archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 701- archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
690- wlarc= 702- wlarc=
691+ mirbsd*) 703+ mirbsd*)
692+ if test -f /usr/libexec/ld.so; then 704+ if test -f /usr/libexec/ld.so; then
693+ hardcode_direct_F77=yes 705+ hardcode_direct_F77=yes
694+ hardcode_shlibpath_var_F77=no 706+ hardcode_shlibpath_var_F77=no
695+ hardcode_direct_absolute_F77=yes 707+ hardcode_direct_absolute_F77=yes
696+ archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 708+ archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
@@ -706,36 +718,36 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3 @@ -706,36 +718,36 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3
706  718
707+ netbsd*) 719+ netbsd*)
708+ archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 720+ archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
709+ archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 721+ archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
710+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 722+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
711+ hardcode_direct_F77=yes 723+ hardcode_direct_F77=yes
712+ hardcode_shlibpath_var_F77=no 724+ hardcode_shlibpath_var_F77=no
713+ output_verbose_link_cmd=func_echo_all 725+ output_verbose_link_cmd=func_echo_all
714+ ;; 726+ ;;
715+ 727+
716 solaris*) 728 solaris*)
717 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 729 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
718 ld_shlibs_F77=no 730 ld_shlibs_F77=no
719@@ -18324,7 +18509,7 @@ fi 731@@ -18324,7 +18496,7 @@ fi
720 allow_undefined_flag_F77="$_lt_dar_allow_undefined" 732 allow_undefined_flag_F77="$_lt_dar_allow_undefined"
721 case $cc_basename in 733 case $cc_basename in
722 ifort*) _lt_dar_can_shared=yes ;; 734 ifort*) _lt_dar_can_shared=yes ;;
723- *) _lt_dar_can_shared=$GCC ;; 735- *) _lt_dar_can_shared=$GCC ;;
724+ *) _lt_dar_can_shared=yes ;; 736+ *) _lt_dar_can_shared=yes ;;
725 esac 737 esac
726 if test "$_lt_dar_can_shared" = "yes"; then 738 if test "$_lt_dar_can_shared" = "yes"; then
727 output_verbose_link_cmd=func_echo_all 739 output_verbose_link_cmd=func_echo_all
728@@ -18498,15 +18683,28 @@ $as_echo "$lt_cv_irix_exported_symbol" > 740@@ -18498,15 +18670,28 @@ $as_echo "$lt_cv_irix_exported_symbol" >
729 link_all_deplibs_F77=yes 741 link_all_deplibs_F77=yes
730 ;; 742 ;;
731  743
732- netbsd*) 744- netbsd*)
733- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 745- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
734- archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 746- archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
735+ mirbsd*) 747+ mirbsd*)
736+ if test -f /usr/libexec/ld.so; then 748+ if test -f /usr/libexec/ld.so; then
737+ hardcode_direct_F77=yes 749+ hardcode_direct_F77=yes
738+ hardcode_shlibpath_var_F77=no 750+ hardcode_shlibpath_var_F77=no
739+ hardcode_direct_absolute_F77=yes 751+ hardcode_direct_absolute_F77=yes
740+ archive_cmds_F77='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 752+ archive_cmds_F77='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
741+ archive_expsym_cmds_F77='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 753+ archive_expsym_cmds_F77='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
@@ -749,97 +761,97 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3 @@ -749,97 +761,97 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3
749- hardcode_libdir_flag_spec_F77='-R$libdir' 761- hardcode_libdir_flag_spec_F77='-R$libdir'
750+ ;; 762+ ;;
751+ 763+
752+ netbsd*) 764+ netbsd*)
753+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 765+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
754+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 766+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
755+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 767+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
756 hardcode_direct_F77=yes 768 hardcode_direct_F77=yes
757 hardcode_shlibpath_var_F77=no 769 hardcode_shlibpath_var_F77=no
758+ output_verbose_link_cmd=func_echo_all 770+ output_verbose_link_cmd=func_echo_all
759 ;; 771 ;;
760  772
761 newsos6) 773 newsos6)
762@@ -18518,6 +18716,11 @@ $as_echo "$lt_cv_irix_exported_symbol" > 774@@ -18518,6 +18703,11 @@ $as_echo "$lt_cv_irix_exported_symbol" >
763 ;; 775 ;;
764  776
765 *nto* | *qnx*) 777 *nto* | *qnx*)
766+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 778+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
767+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 779+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
768+ hardcode_libdir_flag_spec_F77='-R$libdir' 780+ hardcode_libdir_flag_spec_F77='-R$libdir'
769+ hardcode_direct_F77=yes 781+ hardcode_direct_F77=yes
770+ hardcode_shlibpath_var_F77=no 782+ hardcode_shlibpath_var_F77=no
771 ;; 783 ;;
772  784
773 openbsd*) 785 openbsd*)
774@@ -19126,7 +19329,7 @@ dgux*) 786@@ -19126,7 +19316,7 @@ dgux*)
775 shlibpath_var=LD_LIBRARY_PATH 787 shlibpath_var=LD_LIBRARY_PATH
776 ;; 788 ;;
777  789
778-freebsd* | dragonfly*) 790-freebsd* | dragonfly*)
779+freebsd*) 791+freebsd*)
780 # DragonFly does not have aout. When/if they implement a new 792 # DragonFly does not have aout. When/if they implement a new
781 # versioning mechanism, adjust this. 793 # versioning mechanism, adjust this.
782 if test -x /usr/bin/objformat; then 794 if test -x /usr/bin/objformat; then
783@@ -19140,7 +19343,7 @@ freebsd* | dragonfly*) 795@@ -19140,7 +19330,7 @@ freebsd* | dragonfly*)
784 version_type=freebsd-$objformat 796 version_type=freebsd-$objformat
785 case $version_type in 797 case $version_type in
786 freebsd-elf*) 798 freebsd-elf*)
787- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 799- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
788+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 800+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
789 need_version=no 801 need_version=no
790 need_lib_prefix=no 802 need_lib_prefix=no
791 ;; 803 ;;
792@@ -19163,13 +19366,24 @@ freebsd* | dragonfly*) 804@@ -19163,13 +19353,24 @@ freebsd* | dragonfly*)
793 shlibpath_overrides_runpath=no 805 shlibpath_overrides_runpath=no
794 hardcode_into_libs=yes 806 hardcode_into_libs=yes
795 ;; 807 ;;
796- *) # from 4.6 on, and DragonFly 808- *) # from 4.6 on, and DragonFly
797+ *) # from 4.6 on 809+ *) # from 4.6 on
798 shlibpath_overrides_runpath=yes 810 shlibpath_overrides_runpath=yes
799 hardcode_into_libs=yes 811 hardcode_into_libs=yes
800 ;; 812 ;;
801 esac 813 esac
802 ;; 814 ;;
803  815
804+dragonfly*) 816+dragonfly*)
805+ version_type=linux 817+ version_type=linux
806+ need_version=no 818+ need_version=no
807+ need_lib_prefix=no 819+ need_lib_prefix=no
808+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 820+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
809+ soname_spec='${libname}${release}${shared_ext}$major' 821+ soname_spec='${libname}${release}${shared_ext}$major'
810+ shlibpath_var=LD_LIBRARY_PATH 822+ shlibpath_var=LD_LIBRARY_PATH
811+ shlibpath_overrides_runpath=no 823+ shlibpath_overrides_runpath=no
812+ hardcode_into_libs=yes 824+ hardcode_into_libs=yes
813+ ;; 825+ ;;
814+ 826+
815 gnu*) 827 gnu*)
816 version_type=linux # correct to gnu/linux during the next big refactor 828 version_type=linux # correct to gnu/linux during the next big refactor
817 need_lib_prefix=no 829 need_lib_prefix=no
818@@ -19257,12 +19471,7 @@ interix[3-9]*) 830@@ -19257,12 +19458,7 @@ interix[3-9]*)
819 irix5* | irix6* | nonstopux*) 831 irix5* | irix6* | nonstopux*)
820 case $host_os in 832 case $host_os in
821 nonstopux*) version_type=nonstopux ;; 833 nonstopux*) version_type=nonstopux ;;
822- *) 834- *)
823- if test "$lt_cv_prog_gnu_ld" = yes; then 835- if test "$lt_cv_prog_gnu_ld" = yes; then
824- version_type=linux # correct to gnu/linux during the next big refactor 836- version_type=linux # correct to gnu/linux during the next big refactor
825- else 837- else
826- version_type=irix 838- version_type=irix
827- fi ;; 839- fi ;;
828+ *) version_type=irix ;; 840+ *) version_type=irix ;;
829 esac 841 esac
830 need_lib_prefix=no 842 need_lib_prefix=no
831 need_version=no 843 need_version=no
832@@ -19355,19 +19564,36 @@ fi 844@@ -19355,19 +19551,36 @@ fi
833 dynamic_linker='GNU/Linux ld.so' 845 dynamic_linker='GNU/Linux ld.so'
834 ;; 846 ;;
835  847
836+midnightbsd*) 848+midnightbsd*)
837+ version_type=linux 849+ version_type=linux
838+ need_lib_prefix=no 850+ need_lib_prefix=no
839+ need_version=no 851+ need_version=no
840+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${release}${shared_ext} $libname${shared_ext}' 852+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${release}${shared_ext} $libname${shared_ext}'
841+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 853+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
842+ shlibpath_var=LD_LIBRARY_PATH 854+ shlibpath_var=LD_LIBRARY_PATH
843+ shlibpath_overrides_runpath=yes 855+ shlibpath_overrides_runpath=yes
844+ hardcode_into_libs=yes 856+ hardcode_into_libs=yes
845+ ;; 857+ ;;
@@ -866,115 +878,115 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3 @@ -866,115 +878,115 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3
866- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 878- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
867- dynamic_linker='NetBSD (a.out) ld.so' 879- dynamic_linker='NetBSD (a.out) ld.so'
868- else 880- else
869- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 881- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
870- soname_spec='${libname}${release}${shared_ext}$major' 882- soname_spec='${libname}${release}${shared_ext}$major'
871- dynamic_linker='NetBSD ld.elf_so' 883- dynamic_linker='NetBSD ld.elf_so'
872- fi 884- fi
873+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 885+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
874+ soname_spec='${libname}${release}${shared_ext}$major' 886+ soname_spec='${libname}${release}${shared_ext}$major'
875+ dynamic_linker='NetBSD ld.elf_so' 887+ dynamic_linker='NetBSD ld.elf_so'
876 shlibpath_var=LD_LIBRARY_PATH 888 shlibpath_var=LD_LIBRARY_PATH
877 shlibpath_overrides_runpath=yes 889 shlibpath_overrides_runpath=yes
878 hardcode_into_libs=yes 890 hardcode_into_libs=yes
879@@ -19393,7 +19619,7 @@ newsos6) 891@@ -19393,7 +19606,7 @@ newsos6)
880 ;; 892 ;;
881  893
882 openbsd*) 894 openbsd*)
883- version_type=sunos 895- version_type=sunos
884+ version_type=linux 896+ version_type=linux
885 sys_lib_dlsearch_path_spec="/usr/lib" 897 sys_lib_dlsearch_path_spec="/usr/lib"
886 need_lib_prefix=no 898 need_lib_prefix=no
887 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 899 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
888@@ -19401,7 +19627,7 @@ openbsd*) 900@@ -19401,7 +19614,7 @@ openbsd*)
889 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 901 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
890 *) need_version=no ;; 902 *) need_version=no ;;
891 esac 903 esac
892- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 904- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
893+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 905+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
895 shlibpath_var=LD_LIBRARY_PATH 907 shlibpath_var=LD_LIBRARY_PATH
896 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 908 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
897@@ -19966,7 +20192,10 @@ $RM -r conftest* 909@@ -19966,7 +20179,10 @@ $RM -r conftest*
898 *) break;; 910 *) break;;
899 esac 911 esac
900 done 912 done
901-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 913-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
902+# Return the actual command name, not our pkgsrc wrapper name because several 914+# Return the actual command name, not our pkgsrc wrapper name because several
903+# decisions are made only based on compiler names 915+# decisions are made only based on compiler names
904+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi 916+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi
905+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 917+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
906  918
907  919
908 if test -n "$compiler"; then 920 if test -n "$compiler"; then
909@@ -20203,9 +20432,16 @@ lt_prog_compiler_static_FC= 921@@ -20203,9 +20419,16 @@ lt_prog_compiler_static_FC=
910 ;; 922 ;;
911  923
912 darwin* | rhapsody*) 924 darwin* | rhapsody*)
913- # PIC is the default on this platform 925- # PIC is the default on this platform
914+ # PIC is the default on this platform, and static linking of 926+ # PIC is the default on this platform, and static linking of
915+ # binaries generally doesn't work 927+ # binaries generally doesn't work
916 # Common symbols not allowed in MH_DYLIB files 928 # Common symbols not allowed in MH_DYLIB files
917 lt_prog_compiler_pic_FC='-fno-common' 929 lt_prog_compiler_pic_FC='-fno-common'
918+ lt_prog_compiler_static_FC='' 930+ lt_prog_compiler_static_FC=''
919+ ;; 931+ ;;
920+ 932+
921+ *mint*) 933+ *mint*)
922+ # FreeMiNT does not support shared libraries at all 934+ # FreeMiNT does not support shared libraries at all
923+ lt_prog_compiler_pic_FC= 935+ lt_prog_compiler_pic_FC=
924 ;; 936 ;;
925  937
926 haiku*) 938 haiku*)
927@@ -20233,6 +20469,13 @@ lt_prog_compiler_static_FC= 939@@ -20233,6 +20456,13 @@ lt_prog_compiler_static_FC=
928 # Instead, we relocate shared libraries at runtime. 940 # Instead, we relocate shared libraries at runtime.
929 ;; 941 ;;
930  942
931+ mint*) 943+ mint*)
932+ # Just because we use GCC doesn't mean we suddenly get shared libraries 944+ # Just because we use GCC doesn't mean we suddenly get shared libraries
933+ # on systems that don't support them. 945+ # on systems that don't support them.
934+ lt_prog_compiler_can_build_shared_FC=no 946+ lt_prog_compiler_can_build_shared_FC=no
935+ enable_shared=no 947+ enable_shared=no
936+ ;; 948+ ;;
937+ 949+
938 msdosdjgpp*) 950 msdosdjgpp*)
939 # Just because we use GCC doesn't mean we suddenly get shared libraries 951 # Just because we use GCC doesn't mean we suddenly get shared libraries
940 # on systems that don't support them. 952 # on systems that don't support them.
941@@ -20385,6 +20628,15 @@ lt_prog_compiler_static_FC= 953@@ -20385,6 +20615,15 @@ lt_prog_compiler_static_FC=
942 esac 954 esac
943 ;; 955 ;;
944  956
945+ mirbsd*) 957+ mirbsd*)
946+ case $cc_basename in 958+ case $cc_basename in
947+ # pkgsrc f77 is f2c, which uses gcc underneath. 959+ # pkgsrc f77 is f2c, which uses gcc underneath.
948+ f77*) 960+ f77*)
949+ lt_prog_compiler_wl_FC='-Wl,' 961+ lt_prog_compiler_wl_FC='-Wl,'
950+ ;; 962+ ;;
951+ esac 963+ esac
952+ ;; 964+ ;;
953+ 965+
954 newsos6) 966 newsos6)
955 lt_prog_compiler_pic_FC='-KPIC' 967 lt_prog_compiler_pic_FC='-KPIC'
956 lt_prog_compiler_static_FC='-Bstatic' 968 lt_prog_compiler_static_FC='-Bstatic'
957@@ -20460,6 +20712,9 @@ lt_prog_compiler_static_FC= 969@@ -20460,6 +20699,9 @@ lt_prog_compiler_static_FC=
958  970
959 case $host_os in 971 case $host_os in
960 # For platforms which do not support PIC, -DPIC is meaningless: 972 # For platforms which do not support PIC, -DPIC is meaningless:
961+ mint*) 973+ mint*)
962+ lt_prog_compiler_pic_FC= 974+ lt_prog_compiler_pic_FC=
963+ ;; 975+ ;;
964 *djgpp*) 976 *djgpp*)
965 lt_prog_compiler_pic_FC= 977 lt_prog_compiler_pic_FC=
966 ;; 978 ;;
967@@ -20990,16 +21245,29 @@ _LT_EOF 979@@ -20990,16 +21232,29 @@ _LT_EOF
968 fi 980 fi
969 ;; 981 ;;
970  982
971- netbsd*) 983- netbsd*)
972- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 984- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
973- archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 985- archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
974- wlarc= 986- wlarc=
975+ mirbsd*) 987+ mirbsd*)
976+ if test -f /usr/libexec/ld.so; then 988+ if test -f /usr/libexec/ld.so; then
977+ hardcode_direct_FC=yes 989+ hardcode_direct_FC=yes
978+ hardcode_shlibpath_var_FC=no 990+ hardcode_shlibpath_var_FC=no
979+ hardcode_direct_absolute_FC=yes 991+ hardcode_direct_absolute_FC=yes
980+ archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 992+ archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
@@ -990,36 +1002,36 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3 @@ -990,36 +1002,36 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3
990  1002
991+ netbsd*) 1003+ netbsd*)
992+ archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1004+ archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
993+ archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1005+ archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
994+ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 1006+ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
995+ hardcode_direct_FC=yes 1007+ hardcode_direct_FC=yes
996+ hardcode_shlibpath_var_FC=no 1008+ hardcode_shlibpath_var_FC=no
997+ output_verbose_link_cmd=func_echo_all 1009+ output_verbose_link_cmd=func_echo_all
998+ ;; 1010+ ;;
999+ 1011+
1000 solaris*) 1012 solaris*)
1001 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 1013 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
1002 ld_shlibs_FC=no 1014 ld_shlibs_FC=no
1003@@ -21396,7 +21664,7 @@ fi 1015@@ -21396,7 +21651,7 @@ fi
1004 allow_undefined_flag_FC="$_lt_dar_allow_undefined" 1016 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
1005 case $cc_basename in 1017 case $cc_basename in
1006 ifort*) _lt_dar_can_shared=yes ;; 1018 ifort*) _lt_dar_can_shared=yes ;;
1007- *) _lt_dar_can_shared=$GCC ;; 1019- *) _lt_dar_can_shared=$GCC ;;
1008+ *) _lt_dar_can_shared=yes ;; 1020+ *) _lt_dar_can_shared=yes ;;
1009 esac 1021 esac
1010 if test "$_lt_dar_can_shared" = "yes"; then 1022 if test "$_lt_dar_can_shared" = "yes"; then
1011 output_verbose_link_cmd=func_echo_all 1023 output_verbose_link_cmd=func_echo_all
1012@@ -21570,15 +21838,28 @@ $as_echo "$lt_cv_irix_exported_symbol" > 1024@@ -21570,15 +21825,28 @@ $as_echo "$lt_cv_irix_exported_symbol" >
1013 link_all_deplibs_FC=yes 1025 link_all_deplibs_FC=yes
1014 ;; 1026 ;;
1015  1027
1016- netbsd*) 1028- netbsd*)
1017- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 1029- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1018- archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 1030- archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
1019+ mirbsd*) 1031+ mirbsd*)
1020+ if test -f /usr/libexec/ld.so; then 1032+ if test -f /usr/libexec/ld.so; then
1021+ hardcode_direct_FC=yes 1033+ hardcode_direct_FC=yes
1022+ hardcode_shlibpath_var_FC=no 1034+ hardcode_shlibpath_var_FC=no
1023+ hardcode_direct_absolute_FC=yes 1035+ hardcode_direct_absolute_FC=yes
1024+ archive_cmds_FC='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 1036+ archive_cmds_FC='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1025+ archive_expsym_cmds_FC='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 1037+ archive_expsym_cmds_FC='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
@@ -1033,97 +1045,97 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3 @@ -1033,97 +1045,97 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3
1033- hardcode_libdir_flag_spec_FC='-R$libdir' 1045- hardcode_libdir_flag_spec_FC='-R$libdir'
1034+ ;; 1046+ ;;
1035+ 1047+
1036+ netbsd*) 1048+ netbsd*)
1037+ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1049+ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1038+ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1050+ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1039+ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 1051+ hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
1040 hardcode_direct_FC=yes 1052 hardcode_direct_FC=yes
1041 hardcode_shlibpath_var_FC=no 1053 hardcode_shlibpath_var_FC=no
1042+ output_verbose_link_cmd=func_echo_all 1054+ output_verbose_link_cmd=func_echo_all
1043 ;; 1055 ;;
1044  1056
1045 newsos6) 1057 newsos6)
1046@@ -21590,6 +21871,11 @@ $as_echo "$lt_cv_irix_exported_symbol" > 1058@@ -21590,6 +21858,11 @@ $as_echo "$lt_cv_irix_exported_symbol" >
1047 ;; 1059 ;;
1048  1060
1049 *nto* | *qnx*) 1061 *nto* | *qnx*)
1050+ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1062+ archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1051+ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1063+ archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1052+ hardcode_libdir_flag_spec_FC='-R$libdir' 1064+ hardcode_libdir_flag_spec_FC='-R$libdir'
1053+ hardcode_direct_FC=yes 1065+ hardcode_direct_FC=yes
1054+ hardcode_shlibpath_var_FC=no 1066+ hardcode_shlibpath_var_FC=no
1055 ;; 1067 ;;
1056  1068
1057 openbsd*) 1069 openbsd*)
1058@@ -22198,7 +22484,7 @@ dgux*) 1070@@ -22198,7 +22471,7 @@ dgux*)
1059 shlibpath_var=LD_LIBRARY_PATH 1071 shlibpath_var=LD_LIBRARY_PATH
1060 ;; 1072 ;;
1061  1073
1062-freebsd* | dragonfly*) 1074-freebsd* | dragonfly*)
1063+freebsd*) 1075+freebsd*)
1064 # DragonFly does not have aout. When/if they implement a new 1076 # DragonFly does not have aout. When/if they implement a new
1065 # versioning mechanism, adjust this. 1077 # versioning mechanism, adjust this.
1066 if test -x /usr/bin/objformat; then 1078 if test -x /usr/bin/objformat; then
1067@@ -22212,7 +22498,7 @@ freebsd* | dragonfly*) 1079@@ -22212,7 +22485,7 @@ freebsd* | dragonfly*)
1068 version_type=freebsd-$objformat 1080 version_type=freebsd-$objformat
1069 case $version_type in 1081 case $version_type in
1070 freebsd-elf*) 1082 freebsd-elf*)
1071- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 1083- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1072+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1084+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1073 need_version=no 1085 need_version=no
1074 need_lib_prefix=no 1086 need_lib_prefix=no
1075 ;; 1087 ;;
1076@@ -22235,13 +22521,24 @@ freebsd* | dragonfly*) 1088@@ -22235,13 +22508,24 @@ freebsd* | dragonfly*)
1077 shlibpath_overrides_runpath=no 1089 shlibpath_overrides_runpath=no
1078 hardcode_into_libs=yes 1090 hardcode_into_libs=yes
1079 ;; 1091 ;;
1080- *) # from 4.6 on, and DragonFly 1092- *) # from 4.6 on, and DragonFly
1081+ *) # from 4.6 on 1093+ *) # from 4.6 on
1082 shlibpath_overrides_runpath=yes 1094 shlibpath_overrides_runpath=yes
1083 hardcode_into_libs=yes 1095 hardcode_into_libs=yes
1084 ;; 1096 ;;
1085 esac 1097 esac
1086 ;; 1098 ;;
1087  1099
1088+dragonfly*) 1100+dragonfly*)
1089+ version_type=linux 1101+ version_type=linux
1090+ need_version=no 1102+ need_version=no
1091+ need_lib_prefix=no 1103+ need_lib_prefix=no
1092+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1104+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1093+ soname_spec='${libname}${release}${shared_ext}$major' 1105+ soname_spec='${libname}${release}${shared_ext}$major'
1094+ shlibpath_var=LD_LIBRARY_PATH 1106+ shlibpath_var=LD_LIBRARY_PATH
1095+ shlibpath_overrides_runpath=no 1107+ shlibpath_overrides_runpath=no
1096+ hardcode_into_libs=yes 1108+ hardcode_into_libs=yes
1097+ ;; 1109+ ;;
1098+ 1110+
1099 gnu*) 1111 gnu*)
1100 version_type=linux # correct to gnu/linux during the next big refactor 1112 version_type=linux # correct to gnu/linux during the next big refactor
1101 need_lib_prefix=no 1113 need_lib_prefix=no
1102@@ -22329,12 +22626,7 @@ interix[3-9]*) 1114@@ -22329,12 +22613,7 @@ interix[3-9]*)
1103 irix5* | irix6* | nonstopux*) 1115 irix5* | irix6* | nonstopux*)
1104 case $host_os in 1116 case $host_os in
1105 nonstopux*) version_type=nonstopux ;; 1117 nonstopux*) version_type=nonstopux ;;
1106- *) 1118- *)
1107- if test "$lt_cv_prog_gnu_ld" = yes; then 1119- if test "$lt_cv_prog_gnu_ld" = yes; then
1108- version_type=linux # correct to gnu/linux during the next big refactor 1120- version_type=linux # correct to gnu/linux during the next big refactor
1109- else 1121- else
1110- version_type=irix 1122- version_type=irix
1111- fi ;; 1123- fi ;;
1112+ *) version_type=irix ;; 1124+ *) version_type=irix ;;
1113 esac 1125 esac
1114 need_lib_prefix=no 1126 need_lib_prefix=no
1115 need_version=no 1127 need_version=no
1116@@ -22427,19 +22719,36 @@ fi 1128@@ -22427,19 +22706,36 @@ fi
1117 dynamic_linker='GNU/Linux ld.so' 1129 dynamic_linker='GNU/Linux ld.so'
1118 ;; 1130 ;;
1119  1131
1120+midnightbsd*) 1132+midnightbsd*)
1121+ version_type=linux 1133+ version_type=linux
1122+ need_lib_prefix=no 1134+ need_lib_prefix=no
1123+ need_version=no 1135+ need_version=no
1124+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${release}${shared_ext} $libname${shared_ext}' 1136+ library_names_spec='${libname}${release}${shared_ext}${versuffix2} ${libname}${release}${shared_ext} $libname${shared_ext}'
1125+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1137+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1126+ shlibpath_var=LD_LIBRARY_PATH 1138+ shlibpath_var=LD_LIBRARY_PATH
1127+ shlibpath_overrides_runpath=yes 1139+ shlibpath_overrides_runpath=yes
1128+ hardcode_into_libs=yes 1140+ hardcode_into_libs=yes
1129+ ;; 1141+ ;;
@@ -1150,115 +1162,115 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3 @@ -1150,115 +1162,115 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3
1150- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1162- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1151- dynamic_linker='NetBSD (a.out) ld.so' 1163- dynamic_linker='NetBSD (a.out) ld.so'
1152- else 1164- else
1153- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1165- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1154- soname_spec='${libname}${release}${shared_ext}$major' 1166- soname_spec='${libname}${release}${shared_ext}$major'
1155- dynamic_linker='NetBSD ld.elf_so' 1167- dynamic_linker='NetBSD ld.elf_so'
1156- fi 1168- fi
1157+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1169+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1158+ soname_spec='${libname}${release}${shared_ext}$major' 1170+ soname_spec='${libname}${release}${shared_ext}$major'
1159+ dynamic_linker='NetBSD ld.elf_so' 1171+ dynamic_linker='NetBSD ld.elf_so'
1160 shlibpath_var=LD_LIBRARY_PATH 1172 shlibpath_var=LD_LIBRARY_PATH
1161 shlibpath_overrides_runpath=yes 1173 shlibpath_overrides_runpath=yes
1162 hardcode_into_libs=yes 1174 hardcode_into_libs=yes
1163@@ -22465,7 +22774,7 @@ newsos6) 1175@@ -22465,7 +22761,7 @@ newsos6)
1164 ;; 1176 ;;
1165  1177
1166 openbsd*) 1178 openbsd*)
1167- version_type=sunos 1179- version_type=sunos
1168+ version_type=linux 1180+ version_type=linux
1169 sys_lib_dlsearch_path_spec="/usr/lib" 1181 sys_lib_dlsearch_path_spec="/usr/lib"
1170 need_lib_prefix=no 1182 need_lib_prefix=no
1171 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 1183 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1172@@ -22473,7 +22782,7 @@ openbsd*) 1184@@ -22473,7 +22769,7 @@ openbsd*)
1173 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 1185 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1174 *) need_version=no ;; 1186 *) need_version=no ;;
1175 esac 1187 esac
1176- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1188- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1177+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1189+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1179 shlibpath_var=LD_LIBRARY_PATH 1191 shlibpath_var=LD_LIBRARY_PATH
1180 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 1192 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1181@@ -22883,7 +23192,10 @@ for cc_temp in $compiler""; do 1193@@ -22883,7 +23179,10 @@ for cc_temp in $compiler""; do
1182 *) break;; 1194 *) break;;
1183 esac 1195 esac
1184 done 1196 done
1185-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 1197-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1186+# Return the actual command name, not our pkgsrc wrapper name because several 1198+# Return the actual command name, not our pkgsrc wrapper name because several
1187+# decisions are made only based on compiler names 1199+# decisions are made only based on compiler names
1188+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi 1200+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi
1189+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1201+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1190  1202
1191  1203
1192 # Go did not exist at the time GCC didn't implicitly link libc in. 1204 # Go did not exist at the time GCC didn't implicitly link libc in.
1193@@ -23003,9 +23315,16 @@ lt_prog_compiler_static_GO= 1205@@ -23003,9 +23302,16 @@ lt_prog_compiler_static_GO=
1194 ;; 1206 ;;
1195  1207
1196 darwin* | rhapsody*) 1208 darwin* | rhapsody*)
1197- # PIC is the default on this platform 1209- # PIC is the default on this platform
1198+ # PIC is the default on this platform, and static linking of 1210+ # PIC is the default on this platform, and static linking of
1199+ # binaries generally doesn't work 1211+ # binaries generally doesn't work
1200 # Common symbols not allowed in MH_DYLIB files 1212 # Common symbols not allowed in MH_DYLIB files
1201 lt_prog_compiler_pic_GO='-fno-common' 1213 lt_prog_compiler_pic_GO='-fno-common'
1202+ lt_prog_compiler_static_GO='' 1214+ lt_prog_compiler_static_GO=''
1203+ ;; 1215+ ;;
1204+ 1216+
1205+ *mint*) 1217+ *mint*)
1206+ # FreeMiNT does not support shared libraries at all 1218+ # FreeMiNT does not support shared libraries at all
1207+ lt_prog_compiler_pic_GO= 1219+ lt_prog_compiler_pic_GO=
1208 ;; 1220 ;;
1209  1221
1210 haiku*) 1222 haiku*)
1211@@ -23033,6 +23352,13 @@ lt_prog_compiler_static_GO= 1223@@ -23033,6 +23339,13 @@ lt_prog_compiler_static_GO=
1212 # Instead, we relocate shared libraries at runtime. 1224 # Instead, we relocate shared libraries at runtime.
1213 ;; 1225 ;;
1214  1226
1215+ mint*) 1227+ mint*)
1216+ # Just because we use GCC doesn't mean we suddenly get shared libraries 1228+ # Just because we use GCC doesn't mean we suddenly get shared libraries
1217+ # on systems that don't support them. 1229+ # on systems that don't support them.
1218+ lt_prog_compiler_can_build_shared_GO=no 1230+ lt_prog_compiler_can_build_shared_GO=no
1219+ enable_shared=no 1231+ enable_shared=no
1220+ ;; 1232+ ;;
1221+ 1233+
1222 msdosdjgpp*) 1234 msdosdjgpp*)
1223 # Just because we use GCC doesn't mean we suddenly get shared libraries 1235 # Just because we use GCC doesn't mean we suddenly get shared libraries
1224 # on systems that don't support them. 1236 # on systems that don't support them.
1225@@ -23185,6 +23511,15 @@ lt_prog_compiler_static_GO= 1237@@ -23185,6 +23498,15 @@ lt_prog_compiler_static_GO=
1226 esac 1238 esac
1227 ;; 1239 ;;
1228  1240
1229+ mirbsd*) 1241+ mirbsd*)
1230+ case $cc_basename in 1242+ case $cc_basename in
1231+ # pkgsrc f77 is f2c, which uses gcc underneath. 1243+ # pkgsrc f77 is f2c, which uses gcc underneath.
1232+ f77*) 1244+ f77*)
1233+ lt_prog_compiler_wl_GO='-Wl,' 1245+ lt_prog_compiler_wl_GO='-Wl,'
1234+ ;; 1246+ ;;
1235+ esac 1247+ esac
1236+ ;; 1248+ ;;
1237+ 1249+
1238 newsos6) 1250 newsos6)
1239 lt_prog_compiler_pic_GO='-KPIC' 1251 lt_prog_compiler_pic_GO='-KPIC'
1240 lt_prog_compiler_static_GO='-Bstatic' 1252 lt_prog_compiler_static_GO='-Bstatic'
1241@@ -23260,6 +23595,9 @@ lt_prog_compiler_static_GO= 1253@@ -23260,6 +23582,9 @@ lt_prog_compiler_static_GO=
1242  1254
1243 case $host_os in 1255 case $host_os in
1244 # For platforms which do not support PIC, -DPIC is meaningless: 1256 # For platforms which do not support PIC, -DPIC is meaningless:
1245+ mint*) 1257+ mint*)
1246+ lt_prog_compiler_pic_GO= 1258+ lt_prog_compiler_pic_GO=
1247+ ;; 1259+ ;;
1248 *djgpp*) 1260 *djgpp*)
1249 lt_prog_compiler_pic_GO= 1261 lt_prog_compiler_pic_GO=
1250 ;; 1262 ;;
1251@@ -23790,16 +24128,29 @@ _LT_EOF 1263@@ -23790,16 +24115,29 @@ _LT_EOF
1252 fi 1264 fi
1253 ;; 1265 ;;
1254  1266
1255- netbsd*) 1267- netbsd*)
1256- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 1268- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1257- archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 1269- archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1258- wlarc= 1270- wlarc=
1259+ mirbsd*) 1271+ mirbsd*)
1260+ if test -f /usr/libexec/ld.so; then 1272+ if test -f /usr/libexec/ld.so; then
1261+ hardcode_direct_GO=yes 1273+ hardcode_direct_GO=yes
1262+ hardcode_shlibpath_var_GO=no 1274+ hardcode_shlibpath_var_GO=no
1263+ hardcode_direct_absolute_GO=yes 1275+ hardcode_direct_absolute_GO=yes
1264+ archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 1276+ archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
@@ -1274,36 +1286,36 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3 @@ -1274,36 +1286,36 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3
1274  1286
1275+ netbsd*) 1287+ netbsd*)
1276+ archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1288+ archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1277+ archive_expsym_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1289+ archive_expsym_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1278+ hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir' 1290+ hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
1279+ hardcode_direct_GO=yes 1291+ hardcode_direct_GO=yes
1280+ hardcode_shlibpath_var_GO=no 1292+ hardcode_shlibpath_var_GO=no
1281+ output_verbose_link_cmd=func_echo_all 1293+ output_verbose_link_cmd=func_echo_all
1282+ ;; 1294+ ;;
1283+ 1295+
1284 solaris*) 1296 solaris*)
1285 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 1297 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
1286 ld_shlibs_GO=no 1298 ld_shlibs_GO=no
1287@@ -24208,7 +24559,7 @@ fi 1299@@ -24208,7 +24546,7 @@ fi
1288 allow_undefined_flag_GO="$_lt_dar_allow_undefined" 1300 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
1289 case $cc_basename in 1301 case $cc_basename in
1290 ifort*) _lt_dar_can_shared=yes ;; 1302 ifort*) _lt_dar_can_shared=yes ;;
1291- *) _lt_dar_can_shared=$GCC ;; 1303- *) _lt_dar_can_shared=$GCC ;;
1292+ *) _lt_dar_can_shared=yes ;; 1304+ *) _lt_dar_can_shared=yes ;;
1293 esac 1305 esac
1294 if test "$_lt_dar_can_shared" = "yes"; then 1306 if test "$_lt_dar_can_shared" = "yes"; then
1295 output_verbose_link_cmd=func_echo_all 1307 output_verbose_link_cmd=func_echo_all
1296@@ -24381,15 +24732,28 @@ $as_echo "$lt_cv_irix_exported_symbol" > 1308@@ -24381,15 +24719,28 @@ $as_echo "$lt_cv_irix_exported_symbol" >
1297 link_all_deplibs_GO=yes 1309 link_all_deplibs_GO=yes
1298 ;; 1310 ;;
1299  1311
1300- netbsd*) 1312- netbsd*)
1301- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 1313- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1302- archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 1314- archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
1303+ mirbsd*) 1315+ mirbsd*)
1304+ if test -f /usr/libexec/ld.so; then 1316+ if test -f /usr/libexec/ld.so; then
1305+ hardcode_direct_GO=yes 1317+ hardcode_direct_GO=yes
1306+ hardcode_shlibpath_var_GO=no 1318+ hardcode_shlibpath_var_GO=no
1307+ hardcode_direct_absolute_GO=yes 1319+ hardcode_direct_absolute_GO=yes
1308+ archive_cmds_GO='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 1320+ archive_cmds_GO='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1309+ archive_expsym_cmds_GO='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 1321+ archive_expsym_cmds_GO='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
@@ -1317,109 +1329,109 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3 @@ -1317,109 +1329,109 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3
1317- hardcode_libdir_flag_spec_GO='-R$libdir' 1329- hardcode_libdir_flag_spec_GO='-R$libdir'
1318+ ;; 1330+ ;;
1319+ 1331+
1320+ netbsd*) 1332+ netbsd*)
1321+ archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1333+ archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1322+ archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1334+ archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1323+ hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir' 1335+ hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
1324 hardcode_direct_GO=yes 1336 hardcode_direct_GO=yes
1325 hardcode_shlibpath_var_GO=no 1337 hardcode_shlibpath_var_GO=no
1326+ output_verbose_link_cmd=func_echo_all 1338+ output_verbose_link_cmd=func_echo_all
1327 ;; 1339 ;;
1328  1340
1329 newsos6) 1341 newsos6)
1330@@ -24401,6 +24765,11 @@ $as_echo "$lt_cv_irix_exported_symbol" > 1342@@ -24401,6 +24752,11 @@ $as_echo "$lt_cv_irix_exported_symbol" >
1331 ;; 1343 ;;
1332  1344
1333 *nto* | *qnx*) 1345 *nto* | *qnx*)
1334+ archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1346+ archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1335+ archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1347+ archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1336+ hardcode_libdir_flag_spec_GO='-R$libdir' 1348+ hardcode_libdir_flag_spec_GO='-R$libdir'
1337+ hardcode_direct_GO=yes 1349+ hardcode_direct_GO=yes
1338+ hardcode_shlibpath_var_GO=no 1350+ hardcode_shlibpath_var_GO=no
1339 ;; 1351 ;;
1340  1352
1341 openbsd*) 1353 openbsd*)
1342@@ -24980,7 +25349,10 @@ for cc_temp in $compiler""; do 1354@@ -24980,7 +25336,10 @@ for cc_temp in $compiler""; do
1343 *) break;; 1355 *) break;;
1344 esac 1356 esac
1345 done 1357 done
1346-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 1358-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1347+# Return the actual command name, not our pkgsrc wrapper name because several 1359+# Return the actual command name, not our pkgsrc wrapper name because several
1348+# decisions are made only based on compiler names 1360+# decisions are made only based on compiler names
1349+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi 1361+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi
1350+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1362+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1351  1363
1352  1364
1353 # GCJ did not exist at the time GCC didn't implicitly link libc in. 1365 # GCJ did not exist at the time GCC didn't implicitly link libc in.
1354@@ -25100,9 +25472,16 @@ lt_prog_compiler_static_GCJ= 1366@@ -25100,9 +25459,16 @@ lt_prog_compiler_static_GCJ=
1355 ;; 1367 ;;
1356  1368
1357 darwin* | rhapsody*) 1369 darwin* | rhapsody*)
1358- # PIC is the default on this platform 1370- # PIC is the default on this platform
1359+ # PIC is the default on this platform, and static linking of 1371+ # PIC is the default on this platform, and static linking of
1360+ # binaries generally doesn't work 1372+ # binaries generally doesn't work
1361 # Common symbols not allowed in MH_DYLIB files 1373 # Common symbols not allowed in MH_DYLIB files
1362 lt_prog_compiler_pic_GCJ='-fno-common' 1374 lt_prog_compiler_pic_GCJ='-fno-common'
1363+ lt_prog_compiler_static_GCJ='' 1375+ lt_prog_compiler_static_GCJ=''
1364+ ;; 1376+ ;;
1365+ 1377+
1366+ *mint*) 1378+ *mint*)
1367+ # FreeMiNT does not support shared libraries at all 1379+ # FreeMiNT does not support shared libraries at all
1368+ lt_prog_compiler_pic_GCJ= 1380+ lt_prog_compiler_pic_GCJ=
1369 ;; 1381 ;;
1370  1382
1371 haiku*) 1383 haiku*)
1372@@ -25130,6 +25509,13 @@ lt_prog_compiler_static_GCJ= 1384@@ -25130,6 +25496,13 @@ lt_prog_compiler_static_GCJ=
1373 # Instead, we relocate shared libraries at runtime. 1385 # Instead, we relocate shared libraries at runtime.
1374 ;; 1386 ;;
1375  1387
1376+ mint*) 1388+ mint*)
1377+ # Just because we use GCC doesn't mean we suddenly get shared libraries 1389+ # Just because we use GCC doesn't mean we suddenly get shared libraries
1378+ # on systems that don't support them. 1390+ # on systems that don't support them.
1379+ lt_prog_compiler_can_build_shared_GCJ=no 1391+ lt_prog_compiler_can_build_shared_GCJ=no
1380+ enable_shared=no 1392+ enable_shared=no
1381+ ;; 1393+ ;;
1382+ 1394+
1383 msdosdjgpp*) 1395 msdosdjgpp*)
1384 # Just because we use GCC doesn't mean we suddenly get shared libraries 1396 # Just because we use GCC doesn't mean we suddenly get shared libraries
1385 # on systems that don't support them. 1397 # on systems that don't support them.
1386@@ -25282,6 +25668,15 @@ lt_prog_compiler_static_GCJ= 1398@@ -25282,6 +25655,15 @@ lt_prog_compiler_static_GCJ=
1387 esac 1399 esac
1388 ;; 1400 ;;
1389  1401
1390+ mirbsd*) 1402+ mirbsd*)
1391+ case $cc_basename in 1403+ case $cc_basename in
1392+ # pkgsrc f77 is f2c, which uses gcc underneath. 1404+ # pkgsrc f77 is f2c, which uses gcc underneath.
1393+ f77*) 1405+ f77*)
1394+ lt_prog_compiler_wl_GCJ='-Wl,' 1406+ lt_prog_compiler_wl_GCJ='-Wl,'
1395+ ;; 1407+ ;;
1396+ esac 1408+ esac
1397+ ;; 1409+ ;;
1398+ 1410+
1399 newsos6) 1411 newsos6)
1400 lt_prog_compiler_pic_GCJ='-KPIC' 1412 lt_prog_compiler_pic_GCJ='-KPIC'
1401 lt_prog_compiler_static_GCJ='-Bstatic' 1413 lt_prog_compiler_static_GCJ='-Bstatic'
1402@@ -25357,6 +25752,9 @@ lt_prog_compiler_static_GCJ= 1414@@ -25357,6 +25739,9 @@ lt_prog_compiler_static_GCJ=
1403  1415
1404 case $host_os in 1416 case $host_os in
1405 # For platforms which do not support PIC, -DPIC is meaningless: 1417 # For platforms which do not support PIC, -DPIC is meaningless:
1406+ mint*) 1418+ mint*)
1407+ lt_prog_compiler_pic_GCJ= 1419+ lt_prog_compiler_pic_GCJ=
1408+ ;; 1420+ ;;
1409 *djgpp*) 1421 *djgpp*)
1410 lt_prog_compiler_pic_GCJ= 1422 lt_prog_compiler_pic_GCJ=
1411 ;; 1423 ;;
1412@@ -25887,16 +26285,29 @@ _LT_EOF 1424@@ -25887,16 +26272,29 @@ _LT_EOF
1413 fi 1425 fi
1414 ;; 1426 ;;
1415  1427
1416- netbsd*) 1428- netbsd*)
1417- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 1429- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1418- archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 1430- archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1419- wlarc= 1431- wlarc=
1420+ mirbsd*) 1432+ mirbsd*)
1421+ if test -f /usr/libexec/ld.so; then 1433+ if test -f /usr/libexec/ld.so; then
1422+ hardcode_direct_GCJ=yes 1434+ hardcode_direct_GCJ=yes
1423+ hardcode_shlibpath_var_GCJ=no 1435+ hardcode_shlibpath_var_GCJ=no
1424+ hardcode_direct_absolute_GCJ=yes 1436+ hardcode_direct_absolute_GCJ=yes
1425+ archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 1437+ archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
@@ -1435,36 +1447,36 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3 @@ -1435,36 +1447,36 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3
1435  1447
1436+ netbsd*) 1448+ netbsd*)
1437+ archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1449+ archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1438+ archive_expsym_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1450+ archive_expsym_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1439+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 1451+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
1440+ hardcode_direct_GCJ=yes 1452+ hardcode_direct_GCJ=yes
1441+ hardcode_shlibpath_var_GCJ=no 1453+ hardcode_shlibpath_var_GCJ=no
1442+ output_verbose_link_cmd=func_echo_all 1454+ output_verbose_link_cmd=func_echo_all
1443+ ;; 1455+ ;;
1444+ 1456+
1445 solaris*) 1457 solaris*)
1446 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 1458 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
1447 ld_shlibs_GCJ=no 1459 ld_shlibs_GCJ=no
1448@@ -26305,7 +26716,7 @@ fi 1460@@ -26305,7 +26703,7 @@ fi
1449 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined" 1461 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
1450 case $cc_basename in 1462 case $cc_basename in
1451 ifort*) _lt_dar_can_shared=yes ;; 1463 ifort*) _lt_dar_can_shared=yes ;;
1452- *) _lt_dar_can_shared=$GCC ;; 1464- *) _lt_dar_can_shared=$GCC ;;
1453+ *) _lt_dar_can_shared=yes ;; 1465+ *) _lt_dar_can_shared=yes ;;
1454 esac 1466 esac
1455 if test "$_lt_dar_can_shared" = "yes"; then 1467 if test "$_lt_dar_can_shared" = "yes"; then
1456 output_verbose_link_cmd=func_echo_all 1468 output_verbose_link_cmd=func_echo_all
1457@@ -26478,15 +26889,28 @@ $as_echo "$lt_cv_irix_exported_symbol" > 1469@@ -26478,15 +26876,28 @@ $as_echo "$lt_cv_irix_exported_symbol" >
1458 link_all_deplibs_GCJ=yes 1470 link_all_deplibs_GCJ=yes
1459 ;; 1471 ;;
1460  1472
1461- netbsd*) 1473- netbsd*)
1462- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 1474- if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1463- archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 1475- archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
1464+ mirbsd*) 1476+ mirbsd*)
1465+ if test -f /usr/libexec/ld.so; then 1477+ if test -f /usr/libexec/ld.so; then
1466+ hardcode_direct_GCJ=yes 1478+ hardcode_direct_GCJ=yes
1467+ hardcode_shlibpath_var_GCJ=no 1479+ hardcode_shlibpath_var_GCJ=no
1468+ hardcode_direct_absolute_GCJ=yes 1480+ hardcode_direct_absolute_GCJ=yes
1469+ archive_cmds_GCJ='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 1481+ archive_cmds_GCJ='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1470+ archive_expsym_cmds_GCJ='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 1482+ archive_expsym_cmds_GCJ='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
@@ -1478,37 +1490,37 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3 @@ -1478,37 +1490,37 @@ $NetBSD: patch-ab,v 1.80 2014/05/10 15:3
1478- hardcode_libdir_flag_spec_GCJ='-R$libdir' 1490- hardcode_libdir_flag_spec_GCJ='-R$libdir'
1479+ ;; 1491+ ;;
1480+ 1492+
1481+ netbsd*) 1493+ netbsd*)
1482+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1494+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1483+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1495+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1484+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 1496+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
1485 hardcode_direct_GCJ=yes 1497 hardcode_direct_GCJ=yes
1486 hardcode_shlibpath_var_GCJ=no 1498 hardcode_shlibpath_var_GCJ=no
1487+ output_verbose_link_cmd=func_echo_all 1499+ output_verbose_link_cmd=func_echo_all
1488 ;; 1500 ;;
1489  1501
1490 newsos6) 1502 newsos6)
1491@@ -26498,6 +26922,11 @@ $as_echo "$lt_cv_irix_exported_symbol" > 1503@@ -26498,6 +26909,11 @@ $as_echo "$lt_cv_irix_exported_symbol" >
1492 ;; 1504 ;;
1493  1505
1494 *nto* | *qnx*) 1506 *nto* | *qnx*)
1495+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 1507+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1496+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 1508+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1497+ hardcode_libdir_flag_spec_GCJ='-R$libdir' 1509+ hardcode_libdir_flag_spec_GCJ='-R$libdir'
1498+ hardcode_direct_GCJ=yes 1510+ hardcode_direct_GCJ=yes
1499+ hardcode_shlibpath_var_GCJ=no 1511+ hardcode_shlibpath_var_GCJ=no
1500 ;; 1512 ;;
1501  1513
1502 openbsd*) 1514 openbsd*)
1503@@ -27075,7 +27504,10 @@ for cc_temp in $compiler""; do 1515@@ -27075,7 +27491,10 @@ for cc_temp in $compiler""; do
1504 *) break;; 1516 *) break;;
1505 esac 1517 esac
1506 done 1518 done
1507-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 1519-cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1508+# Return the actual command name, not our pkgsrc wrapper name because several 1520+# Return the actual command name, not our pkgsrc wrapper name because several
1509+# decisions are made only based on compiler names 1521+# decisions are made only based on compiler names
1510+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi 1522+if test -n "$cc_temp" && new_cc_temp=`$cc_temp --wrappee-name 2>/dev/null`; then :; else new_cc_temp="$cc_temp"; fi
1511+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1523+cc_basename=`$ECHO "X$new_cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1512  1524
1513 lt_cv_prog_compiler_c_o_RC=yes 1525 lt_cv_prog_compiler_c_o_RC=yes
1514  1526