This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix for configuring targets that need extra flags


The C++ and F77 support libraries will not compile for me as I have to
pass in additional arguments to the compiler when building a cross
compiler.  These arguments fail to be passed into the configuration
process for preprocessor tests.  The following change fixes this:

diff -c -3 -p -r1.683 ChangeLog
*** ChangeLog   20 Feb 2003 01:11:51 -0000      1.683
--- ChangeLog   20 Feb 2003 21:35:26 -0000
***************
*** 1,3 ****
--- 1,8 ----
+ 2003-02-20  Sean McNeil  <sean at blue dot mcneil dot com>
+
+       * Makefile.in: Add CPPFLAGS to configuration for
+       configure-target-libf2c and configure-target-libiberty.
+
  2003-02-19  Alexandre Oliva  <aoliva at redhat dot com>
   
        * libtool.m4 (LD): Append -melf* option to LD on IRIX with GNU
ld.
Index: Makefile.in
===================================================================
RCS file: /cvsroot/gcc/gcc/Makefile.in,v
retrieving revision 1.150
diff -c -3 -p -r1.150 Makefile.in
*** Makefile.in 19 Feb 2003 23:37:24 -0000      1.150
--- Makefile.in 20 Feb 2003 21:35:26 -0000
*************** configure-target-libf2c: $(TARGET_SUBDIR
*** 5798,5803 ****
--- 5798,5804 ----
            AS="$(AS_FOR_TARGET)"; export AS; \
            CC="$(CC_FOR_TARGET)"; export CC; \
            CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
+           CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
            CXX="$(CXX_FOR_TARGET)"; export CXX; \
            CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
            GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
*************** configure-target-libiberty: $(TARGET_SUB
*** 6285,6290 ****
--- 6286,6292 ----
            AS="$(AS_FOR_TARGET)"; export AS; \
            CC="$(CC_FOR_TARGET)"; export CC; \
            CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
+           CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
            CXX="$(CXX_FOR_TARGET)"; export CXX; \
            CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
            GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]