tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: ffmpeg2 fails to build on netbsd-7
Oh, ffmpeg010 also needs the stack-realignment conditions adjusted for
i386 gcc48+
+Index: multimedia/ffmpeg010/Makefile
+===================================================================
+RCS file: /cvsroot/pkgsrc/multimedia/ffmpeg010/Makefile,v
+retrieving revision 1.19
+diff -u -p -r1.19 Makefile
+--- multimedia/ffmpeg010/Makefile 11 Aug 2014 23:09:45 -0000 1.19
++++ multimedia/ffmpeg010/Makefile 16 Aug 2014 03:35:49 -0000
+@@ -30,17 +30,15 @@ CONF_FILES+= ${PREFIX}/share/examples/ff
+ .include "../../mk/compiler.mk"
+
+ # disable asm on i386 for non-gcc and gcc < 4.2
+-# no alignment options needed for gcc >= 4.6 on i386
+
+ .if ${MACHINE_ARCH} == "i386"
+-.if !empty(MACHINE_PLATFORM:MDarwin-*-i386)
+-CONFIGURE_ARGS+= --disable-asm
+-.elif !empty(CC_VERSION:Mgcc-4.[2345]*)
+-CFLAGS+=-mstackrealign -mpreferred-stack-boundary=4
+-.elif !empty(CC_VERSION:Mgcc-[123]*) \
+- || !empty(CC_VERSION:Mgcc-4.[01]*) \
++.if !empty(MACHINE_PLATFORM:MDarwin-*-i386) \
++ || !empty(CC_VERSION:Mgcc-[123]*) \
++ || !empty(CC_VERSION:Mgcc-4.[01].*) \
+ || empty(CC_VERSION:Mgcc*)
+ CONFIGURE_ARGS+= --disable-asm
++.elif !empty(CC_VERSION:Mgcc-4.*)
++CFLAGS+=-mstackrealign -mpreferred-stack-boundary=4
+ .endif
+ .endif
+
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
Home |
Main Index |
Thread Index |
Old Index