Commit 40b7091e authored by Alexandre Julliard's avatar Alexandre Julliard

configure: Allow specifying different CFLAGS for the cross compiler.

parent a9493881
......@@ -43,6 +43,7 @@ CPPBIN = @CPPBIN@
CROSSCC = @CROSSCC@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
CROSSCFLAGS = @CROSSCFLAGS@
EXTRACFLAGS = @EXTRACFLAGS@
MSVCRTFLAGS = @BUILTINFLAG@
TARGETFLAGS = @TARGETFLAGS@
......
......@@ -690,6 +690,7 @@ X_PRE_LIBS
X_CFLAGS
XMKMF
PTHREAD_LIBS
CROSSCFLAGS
CROSSCC
CROSSTARGET
PRELINK
......@@ -9105,6 +9106,8 @@ $as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
CC="$ac_save_CC"
CROSSCFLAGS=${CROSSCFLAGS:-$CFLAGS}
fi
fi
......
......@@ -983,6 +983,7 @@ then
done],
[AC_MSG_RESULT([no])])
CC="$ac_save_CC"
AC_SUBST(CROSSCFLAGS,${CROSSCFLAGS:-$CFLAGS})
fi
fi
......
......@@ -2669,7 +2669,7 @@ static struct strarray output_sources( const struct makefile *make )
if (make->use_msvcrt) output_filenames( msvcrt_flags );
output_filename( "-DWINE_CROSSTEST" );
output_filenames( cpp_flags );
output_filename( "$(CFLAGS)" );
output_filename( "$(CROSSCFLAGS)" );
output( "\n" );
}
if (make->testdll && !strcmp( ext, "c" ) && !(source->file->flags & FLAG_GENERATED))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment