Subject: Re: CVS commit: pkgsrc/audio/libsndfile
To: None <tech-pkg@NetBSD.org, grant@NetBSD.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: pkgsrc-changes
Date: 05/09/2004 23:03:35
--GPT5DIEyVHz5yXBV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Sun, May 09, 2004 at 10:02:28PM +1000, grant beattie wrote:
> On Tue, May 04, 2004 at 02:43:00PM +0200, Lubomir Sedlacik wrote:
>=20
> > > Module Name: pkgsrc
> > > Committed By: snj
> > > Date: Mon May 3 22:19:08 UTC 2004
> > >=20
> > > Modified Files:
> > > pkgsrc/audio/libsndfile: Makefile
> > >=20
> > > Log Message:
> > > While here, reinstate the sparc64 gcc2 f77 workaround.
> >=20
> > duh, why do we do it in such a stupid (and ineffective) way? it should
> > be simply set by default to FALSE if USE_LANGUAGES has no fortran defin=
ed..
>=20
> it's not ineffective - it achieves the desired goal.
>=20
> but you are exactly right, this should be happening automatically.
i made a patch few days ago but never got a reply back from snj and
jlam.
Index: gcc.mk
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/pkgsrc/mk/compiler/gcc.mk,v
retrieving revision 1.64
diff -u -r1.64 gcc.mk
--- gcc.mk 5 May 2004 03:05:41 -0000 1.64
+++ gcc.mk 5 May 2004 09:54:20 -0000
@@ -132,6 +132,14 @@
CFLAGS+=3D -Wno-import
.endif
=20
+# Work around bogus tests for Fortran compiler in packages which use GNU
+# autoconf suite and don't really need it. The result is ICE in GCC2 on
+# sparc64.
+#
+.if empty(_LANGUAGES.gcc:Mfortran)
+CONFIGURE_ENV+=3D F77=3D${FALSE}
+.endif
+
# Some platforms (such as IRIX) may support different ABIs. Set the CFLAGS
# accordingly.
=20
--=20
-- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org> --
--GPT5DIEyVHz5yXBV
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)
iD8DBQFAnpyniwjDDlS8cmMRAnxEAJ9wxqESXBhp81siWdga+hEiIjw1ZACfWEgL
ZU6eh+BTnl+8NINORvbGNPs=
=iMVB
-----END PGP SIGNATURE-----
--GPT5DIEyVHz5yXBV--