Subject: Re: netbsd-current vs. new graphics/MesaLib
To: matthew green <mrg@eterna.com.au>
From: John R. Shannon <john@johnrshannon.com>
List: tech-pkg
Date: 01/22/2004 04:13:43
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NetBSD 1.6ZH:
I did not see a patch with your E-mail, so used this:
colleen> cat patch-mklib
$NetBSD$
=2D --- bin/mklib.orig 2004-01-14 16:18:18.000000000 -0700
+++ bin/mklib
@@ -214,7 +214,7 @@ case $ARCH in
rm -f ${LIBNAME}_pic.a ${LIBNAME}.so.${VERSION}
ar cq ${LIBNAME}_pic.a ${OBJECTS}
ranlib ${LIBNAME}_pic.a
=2D - ld -x -Bshareable -Bforcearchive -o ${LIBNAME}.so.${VERSION}=20
${LIBNAME}_pic.a
+ ld -x -Bshareable --whole-archive -o ${LIBNAME}.so.${VERSION}=20
${LIBNAME}_pic.a
FINAL_LIBS=3D"${LIBNAME}_pic.a ${LIBNAME}.so.${VERSION}"
;;
With MesaLibs rebuilt with this patch, x11/qt3-tools now builds.
On Wednesday 21 January 2004 09:52 pm, matthew green wrote:
> hi folks.
>
>
> the new graphics/MesaLib breaks on anyone running netbsd-current
> with binutils 2.14. this is my fault i guess as our binutils 2.14
> doesn't support "-Bforcearchive". i've added this flag back to
> -current ld 2.14, but this won't help users of -current since 2.14
> integration & pkgsrc-current.
>
> a patch to make it (MesaLib's "mklib" script) use "--whole-archive"
> on 1.6 & above should work fine, but i'm not able to easily test
> this... someone probably should. and ideally, if --whole-archive
> works on 1.5 as well i'd say such a patch should be pushed upstream..
>
>
> .mrg.
=2D --=20
John R. Shannon
john@johnrshannon.com
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)
iEYEARECAAYFAkAPsHIACgkQOKbCxya4HYvGogCcDXboj7KqSeLkuLJ42hSKqv1I
LLYAnAmgnIHzyD/cqnswNhUmkZmArYSw
=3DvhTA
=2D----END PGP SIGNATURE-----