diff options
author | skrll <skrll> | 2003-01-31 20:33:51 +0000 |
---|---|---|
committer | skrll <skrll> | 2003-01-31 20:33:51 +0000 |
commit | 5821f0526439f039ca5b2cb6b67b8637abaea48c (patch) | |
tree | 93af7bade154b1d7246ca675fcb5a597e8c456db /devel/libtool | |
parent | f7da71060c9823b6524fa7ea91ae926c4e2172b5 (diff) | |
download | pkgsrc-5821f0526439f039ca5b2cb6b67b8637abaea48c.tar.gz |
Don't use -nodefaultlibs when linking C libraries - this was for old broken
ELF toolchains. glib2 on -current will now link correctly as -pthread will
have an effect.
PKGREVISION++
Diffstat (limited to 'devel/libtool')
-rw-r--r-- | devel/libtool/Makefile.common | 4 | ||||
-rw-r--r-- | devel/libtool/distinfo | 4 | ||||
-rw-r--r-- | devel/libtool/patches/patch-am | 19 |
3 files changed, 18 insertions, 9 deletions
diff --git a/devel/libtool/Makefile.common b/devel/libtool/Makefile.common index a7ddb6c4098..068fd02785a 100644 --- a/devel/libtool/Makefile.common +++ b/devel/libtool/Makefile.common @@ -1,9 +1,9 @@ -# $NetBSD: Makefile.common,v 1.28 2003/01/31 20:29:09 skrll Exp $ +# $NetBSD: Makefile.common,v 1.29 2003/01/31 20:33:51 skrll Exp $ # DISTNAME= libtool-ml-20010614 PKGPFX= ${DISTNAME:C/ml-/1.4./} -PKGREVISION= 12 +PKGREVISION= 13 WRKSRC= ${WRKDIR}/libtool-ml CATEGORIES= devel pkgtools MASTER_SITES= ${MASTER_SITE_LOCAL} diff --git a/devel/libtool/distinfo b/devel/libtool/distinfo index fb9097a2b23..eb943823101 100644 --- a/devel/libtool/distinfo +++ b/devel/libtool/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.23 2003/01/21 22:43:42 grant Exp $ +$NetBSD: distinfo,v 1.24 2003/01/31 20:33:51 skrll Exp $ SHA1 (libtool-ml-20010614.tar.gz) = ff746666737e420592c3017d65bf4c47f1430dac Size (libtool-ml-20010614.tar.gz) = 784246 bytes @@ -14,5 +14,5 @@ SHA1 (patch-ai) = bf5296409ccba34bccbc5ed289eeaa8350d7176e SHA1 (patch-aj) = 5382fc0a6a58687da5523c596118a4eeb948f675 SHA1 (patch-ak) = 7e7c6a515361863b683bbc8be24c8146501ca864 SHA1 (patch-al) = 22f1b7289d9ba477255e66364ae23af24a298dd0 -SHA1 (patch-am) = cedc92d0e229ced47ca5eb6ad4997fb1506d5ec9 +SHA1 (patch-am) = 0057a15d9bdb5a70d4964df49aa3e905ff7d9cf5 SHA1 (patch-ao) = 4e115e9d6ddde556205dc786cde471bfee5a5e9e diff --git a/devel/libtool/patches/patch-am b/devel/libtool/patches/patch-am index 30f2f5c49b5..c6fff94b711 100644 --- a/devel/libtool/patches/patch-am +++ b/devel/libtool/patches/patch-am @@ -1,8 +1,8 @@ -$NetBSD: patch-am,v 1.4 2002/08/25 18:38:36 jlam Exp $ +$NetBSD: patch-am,v 1.5 2003/01/31 20:33:52 skrll Exp $ ---- ltcf-c.sh.orig Wed Apr 25 00:05:02 2001 +--- ltcf-c.sh.orig 2001-04-25 04:05:02.000000000 +0000 +++ ltcf-c.sh -@@ -173,16 +173,6 @@ +@@ -173,23 +173,13 @@ EOF $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' ;; @@ -19,7 +19,16 @@ $NetBSD: patch-am,v 1.4 2002/08/25 18:38:36 jlam Exp $ netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' -@@ -379,6 +369,23 @@ + wlarc= + else +- archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' +- archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ++ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' ++ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + +@@ -379,6 +369,23 @@ else fix_srcfile_path='`cygpath -w "$srcfile"`' ;; @@ -43,7 +52,7 @@ $NetBSD: patch-am,v 1.4 2002/08/25 18:38:36 jlam Exp $ freebsd1*) ld_shlibs=no ;; -@@ -644,7 +651,7 @@ +@@ -644,7 +651,7 @@ else darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files |