Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jan 2004 20:15:38 +0100
From:      Tilman Linneweh <arved@FreeBSD.org>
To:        lioux@FreeBSD.org
Cc:        arved@FreeBSD.org
Subject:   Fix Build on AMD64: djbfft, ffmpeg
Message-ID:  <200401052015.38294.arved@FreeBSD.org>

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

--Boundary-00=_afb+/x6CGTCBXoY
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello Mario, 

With the following two patches mplayer works on AMD64 (at least for mpegs..)

Please commit.

regards
tilman

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

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/math/djbfft/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile	20 Nov 2003 15:06:05 -0000	1.6
+++ Makefile	5 Jan 2004 18:36:30 -0000
@@ -25,7 +25,7 @@
 	@${PERL} -pi -e 's|("include)|\1/${PORTNAME}|' ${WRKSRC}/hier.c
 
 do-configure:
-	@${ECHO_CMD} '${CC} ${CFLAGS}' > ${WRKSRC}/conf-cc
+	@${ECHO_CMD} '${CC} ${CFLAGS} -fPIC' > ${WRKSRC}/conf-cc
 	@${ECHO_CMD} '${CC}' > ${WRKSRC}/conf-ld
 	@${ECHO_CMD} ${PREFIX} > ${WRKSRC}/conf-home
 .ifdef(WITH_OPT_PENTIUM)

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

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/multimedia/ffmpeg/Makefile,v
retrieving revision 1.25
diff -u -r1.25 Makefile
--- Makefile	27 Dec 2003 23:02:44 -0000	1.25
+++ Makefile	5 Jan 2004 18:45:42 -0000
@@ -126,11 +126,11 @@
 .endif
 ## optimization
 .ifdef(WITH_OPTIMIZED_CFLAGS)
-CONFIGURE_ARGS+=	--extra-cflags="-I${LOCALBASE}/include \
+CONFIGURE_ARGS+=	--extra-cflags="-fPIC -I${LOCALBASE}/include \
 			-I${X11BASE}/include \
 			-ffast-math -fomit-frame-pointer"
 .else
-CONFIGURE_ARGS+=	--extra-cflags="-I${LOCALBASE}/include \
+CONFIGURE_ARGS+=	--extra-cflags="-fPIC -I${LOCALBASE}/include \
 			-I${X11BASE}/include" \
 			--disable-opts
 .endif

--Boundary-00=_afb+/x6CGTCBXoY--



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