]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Override default -I flags.
authorBruno Haible <bruno@clisp.org>
Tue, 14 Mar 2006 14:24:47 +0000 (14:24 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:13:02 +0000 (12:13 +0200)
gettext-tools/tests/ChangeLog
gettext-tools/tests/lang-c
gettext-tools/tests/lang-c++
gettext-tools/tests/lang-objc

index c4d90d2fbe15225e581b00b22608586c4d603a7f..7915a4593d95036f410b333fe500eaf5ddde251d 100644 (file)
@@ -1,3 +1,9 @@
+2006-03-11  Bruno Haible  <bruno@clisp.org>
+
+       * lang-c: Put the -I flags before ${CFLAGS} ${CPPFLAGS}.
+       * lang-c++: Likewise.
+       * lang-objc: Likewise.
+
 2006-03-11  Bruno Haible  <bruno@clisp.org>
 
        * format-python-1: Hide xgettext warnings.
index 21f1907efb672cccc549a8439935d888133a375b..46c3bf5461bc1399ed1256a6006d2a777b3506d8 100755 (executable)
@@ -48,7 +48,10 @@ EOF
 top_builddir=..
 
 tmpfiles="$tmpfiles prog.${OBJEXT} prog${EXEEXT}"
-${LIBTOOL} --quiet --mode=link ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o prog prog.c -I.. -I$top_srcdir/lib ../lib/libgettextlib.la -I../intl ${LTLIBINTL} \
+# Put the -I flags before ${CFLAGS} ${CPPFLAGS}, to make sure that libintl.h
+# is found in the build directory, regardless of -I options present in
+# ${CFLAGS} or ${CPPFLAGS}.
+${LIBTOOL} --quiet --mode=link ${CC} -I.. -I$top_srcdir/lib ../lib/libgettextlib.la -I../intl ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o prog prog.c ${LTLIBINTL} \
   || exit 1
 
 tmpfiles="$tmpfiles prog.pot"
index 59bb399e69841d7e2176e7e9d7fea45e7332c933..7e4892e7e7e2c0d848d89edafb2960919cff2b05 100755 (executable)
@@ -61,7 +61,10 @@ top_builddir=..
 tmpfiles="$tmpfiles prog.${OBJEXT} prog${EXEEXT}"
 # Compile in two steps from .cc to .o and from .o to 'prog'. This way,
 # relinking is faster because doesn't need to redo the first step.
-${CXX} ${CXXFLAGS} ${CPPFLAGS} -c prog.cc -I.. -I../../gettext-runtime/libasprintf -I$top_srcdir/lib -I../intl \
+# Put the -I flags before ${CXXFLAGS} ${CPPFLAGS}, to make sure that libintl.h
+# is found in the build directory, regardless of -I options present in
+# ${CXXFLAGS} or ${CPPFLAGS}.
+${CXX} -I.. -I../../gettext-runtime/libasprintf -I$top_srcdir/lib -I../intl ${CXXFLAGS} ${CPPFLAGS} -c prog.cc \
   || exit 1
 ${LIBTOOL} --quiet --mode=link ${CXX} ${CXXFLAGS} ${LDFLAGS} -o prog prog.${OBJEXT} ../../gettext-runtime/libasprintf/libasprintf.la ../lib/libgettextlib.la ${LTLIBINTL} \
   || exit 1
index 53f7ae69043b98cdd1871cca21b605296890de1c..2ab2b3fd0c393e0b65f28211cfa2540b5d7bead1 100755 (executable)
@@ -62,7 +62,10 @@ EOF
 top_builddir=..
 
 tmpfiles="$tmpfiles prog.${OBJEXT} prog${EXEEXT}"
-${LIBTOOL} --quiet --mode=link ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o prog prog.m -I.. -I$top_srcdir/lib ../lib/libgettextlib.la -I../intl ${LTLIBINTL} \
+# Put the -I flags before ${CFLAGS} ${CPPFLAGS}, to make sure that libintl.h
+# is found in the build directory, regardless of -I options present in
+# ${CFLAGS} or ${CPPFLAGS}.
+${LIBTOOL} --quiet --mode=link ${CC} -I.. -I$top_srcdir/lib ../lib/libgettextlib.la -I../intl ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o prog prog.m ${LTLIBINTL} \
   || exit 1
 
 tmpfiles="$tmpfiles prog.pot"