Move all internal -I parameters to the front of CFLAGS to avoid using external
authorDiego Biurrun <diego@biurrun.de>
Thu, 17 Aug 2006 17:19:56 +0000 (17:19 +0000)
committerDiego Biurrun <diego@biurrun.de>
Thu, 17 Aug 2006 17:19:56 +0000 (17:19 +0000)
header files that happen to have the same name as internal ones.
based on a patch by Vladislav Naumov, vladislav.naumov **at** gmail **dot** com

Originally committed as revision 19426 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/Makefile

index 38a33e2..a28c67c 100644 (file)
@@ -9,7 +9,7 @@ EXTRALIBS := -L../libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
 endif
 
 # NOTE: -I.. is needed to include config.h
 endif
 
 # NOTE: -I.. is needed to include config.h
-CFLAGS=$(OPTFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil \
+CFLAGS=-I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil $(OPTFLAGS) \
        -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
        -D_GNU_SOURCE
 
        -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
        -D_GNU_SOURCE