Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Feb 2004 22:09:30 +0100
From:      Adriaan de Groot <adridg@cs.kun.nl>
To:        lioux@freebsd.org
Cc:        freebsd-amd64@freebsd.org
Subject:   [PATCH] libmpeg2
Message-ID:  <200402062209.30490.adridg@cs.kun.nl>

next in thread | raw e-mail | index | archive | help

--Boundary-00=_KKAJAatr4BtKheM
Content-Type: Text/Plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[CC to amd64 list because it's relevant for that platform; CC to kde becaus=
e=20
it's a dependency  port for kde.]

The attached patch takes out the don't-use-PIC logic from the libmpeg2 port=
 on=20
amd64. amd64 doesn't like libraries without -fPIC with 32-bit relocations (=
or=20
something like that). In any case, the port doesn't compile with=20
=2D -prefer-no-pic, so I ripped it out :)

=2D --=20
       pub  1024D/FEA2A3FE 2002-06-18 Adriaan de Groot <groot@kde.org>
The users that I support would double-click on a landmine to see what it di=
d.
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAJAKKdqzuAf6io/4RAgogAKCZEF2eHVpsQ/kJfFlCizU/4ue6yACcCy1w
Pb9cELc5CF43IpYAg5/MYKs=3D
=3DT3qp
=2D----END PGP SIGNATURE-----

--Boundary-00=_KKAJAatr4BtKheM
Content-Type: text/x-diff;
  charset="us-ascii";
  name="libmpeg2.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="libmpeg2.diff"

--- Makefile.orig	Fri Feb  6 21:42:59 2004
+++ Makefile	Fri Feb  6 21:59:39 2004
@@ -52,6 +52,7 @@
 CFLAGS:=	${CFLAGS:N-mcpu=*}
 .endif
 
+
 pre-everything::
 	@${ECHO_MSG} "====>"
 .ifndef(WITH_SDL)
@@ -67,6 +68,11 @@
 	@${REINPLACE_CMD} -e 's|-O3||;s|<termio.h>|<termios.h>|' ${WRKSRC}/configure
 	@${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \
 		${WRKSRC}/libmpeg2/Makefile.in
+
+.if ${MACHINE_ARCH:L} == "amd64"
+post-configure:
+	@${REINPLACE_CMD} -e 's|-prefer-non-pic||' ${WRKSRC}/*/Makefile*
+.endif
 
 post-install:
 .ifndef(NOPORTDOCS)

--Boundary-00=_KKAJAatr4BtKheM--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402062209.30490.adridg>