[PATCH] Append the user CFLAGS value to the CFLAGS used for compilation, rather than prepend it.

Stefano Sabatini stefano.sabatini-lala at poste.it
Mon Aug 10 09:31:43 CEST 2009


This way there is the guarantee that the included headers are those in
the libx264 sources, rather than pre-installed headers referenced by
the user CFLAGS.
---
 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index 53198e8..538003d 100755
--- a/configure
+++ b/configure
@@ -61,7 +61,7 @@ pic="no"
 vis="no"
 shared="no"
 
-CFLAGS="$CFLAGS -Wall -I."
+CFLAGS="-Wall -I. $CFLAGS"
 LDFLAGS="$LDFLAGS"
 ASFLAGS="$ASFLAGS"
 HAVE_GETOPT_LONG=1
-- 
1.6.3.3


--/04w6evG8XlLl3ft--


More information about the x264-devel mailing list