[x264-devel] [PATCH 6/7] Add -D_GNU_SOURCE to CFLAGS for encoder/analyse.o

KO Myung-Hun komh at chollian.net
Sat Mar 19 15:17:28 CET 2011


---
 Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index bbca387..907e806 100644
--- a/Makefile
+++ b/Makefile
@@ -159,6 +159,10 @@ x264$(EXE): $(OBJCLI) libx264.a
 checkasm$(EXE): tools/checkasm.o libx264.a
 	$(CC) -o $@ $+ $(LDFLAGS)
 
+ifeq ($(SYS),OS2)
+encoder/analyse.o : CFLAGS += -D_GNU_SOURCE
+endif
+
 %.o: %.asm
 	$(AS) $(ASFLAGS) -o $@ $<
 	-@ $(STRIP) -x $@ # delete local/anonymous symbols, so they don't show up in oprofile
-- 
1.7.3.2


More information about the x264-devel mailing list