Subject: Re: Linker problems
To: None <tech-pkg@netbsd.org>
From: Jan Schaumann <jschauma@netmeister.org>
List: tech-pkg
Date: 05/12/2004 17:32:27
--Q59ABw34pTSIagmi
Content-Type: multipart/mixed; boundary="GBDnBH7+ZvLx8QD4"
Content-Disposition: inline
--GBDnBH7+ZvLx8QD4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
flo@cfdisk.org wrote:
> Quoting Jan Schaumann <jschauma@netmeister.org>:
>=20
> > flo@cfdisk.org wrote:
> > > Quoting Jan Schaumann <jschauma@netmeister.org>:
> >
> > > > > # $NetBSD: gcc.mk,v 1.64 2004/05/05 03:05:41 jschauma Exp $
> > > >
> > > > Hmmm. Try editing that file and in line 139, add
> > > >
> > > > LDFLAGS+=3D -mabi=3D${ABI:C/^32$/n&/}
=20
> Ok, I applied your patch and it worked for bzip2, but not for OpenSSL.
>=20
> ....
>=20
> cc -DMONOLITH -I../include -DTHREADS -D_SGI_MP_SOURCE -DDSO_DLFCN -DHAVE_=
DLFCN_H
> -DNO_IDEA -DNO_RC5 -DNO_MDC2 -DNO_ASM -O2 -mabi=3D64 -mabi=3D64 -64 -mips=
4 -O2
> -use_readonly_const -DTERMIOS -DB_ENDIAN -DBN_DIV3W -c x509.c
> gcc: unrecognized option `-64'
Ah, this silly '-64' up there comes from the openssl configure script.
So far we haven't had anybody using gcc on Irix, so we didn't catch
this. Try the attached patch for openssl.
-Jan
--=20
http://www.ncadp.org
--GBDnBH7+ZvLx8QD4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff
Content-Transfer-Encoding: quoted-printable
Index: Makefile
=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/security/openssl/Makefile,v
retrieving revision 1.92
diff -b -u -r1.92 Makefile
--- Makefile 26 Mar 2004 08:33:49 -0000 1.92
+++ Makefile 12 May 2004 21:28:18 -0000
@@ -49,10 +49,15 @@
. endif
.elif ${OPSYS} =3D=3D "IRIX"
CONFIGURE_ARGS+=3D no-asm
+. if !empty(PKGSRC_COMPILER:Mmipspro*)
. if ${ABI} =3D=3D "64"
CONFIGURE_SCRIPT=3D ./Configure
CONFIGURE_ARGS+=3D irix64-mips4-cc
. endif
+. elif ${ABI} =3D=3D "64"
+CONFIGURE_SCRIPT=3D ./Configure
+CONFIGURE_ARGS+=3D irix64-mips4-gcc
+. endif
.endif
=20
CONFIGURE_ARGS+=3D ${CFLAGS} ${LDFLAGS}
--GBDnBH7+ZvLx8QD4--
--Q59ABw34pTSIagmi
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)
iD8DBQFAopfrfFtkr68iakwRAoKKAKCIKCMWknmPs+FFb8g/CjBolMWsLQCfS6Wn
HBFbWyzRQhs4Qbt7Bf+kab8=
=HKnL
-----END PGP SIGNATURE-----
--Q59ABw34pTSIagmi--