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>
index | next in thread | raw e-mail
[-- Attachment #1 --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[CC to amd64 list because it's relevant for that platform; CC to kde because
it's a dependency port for kde.]
The attached patch takes out the don't-use-PIC logic from the libmpeg2 port on
amd64. amd64 doesn't like libraries without -fPIC with 32-bit relocations (or
something like that). In any case, the port doesn't compile with
- -prefer-no-pic, so I ripped it out :)
- --
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 did.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFAJAKKdqzuAf6io/4RAgogAKCZEF2eHVpsQ/kJfFlCizU/4ue6yACcCy1w
Pb9cELc5CF43IpYAg5/MYKs=
=T3qp
-----END PGP SIGNATURE-----
[-- Attachment #2 --]
--- 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)
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402062209.30490.adridg>
