Use CFLAGS as HOST_CFLAGS by default
authorDan Nicholson <dbn.lists@gmail.com>
Sat, 12 Sep 2009 16:27:01 +0000 (09:27 -0700)
committerDan Nicholson <dbn.lists@gmail.com>
Sat, 12 Sep 2009 16:35:43 +0000 (09:35 -0700)
Unless we're cross compiling, the HOST_CFLAGS should be the same as the
normal CFLAGS. This allows the x86 and x86_64 asm to be built correctly
with a native compiler using -m32/-m64.

Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
configs/default

index 773a6204d3a18b9242a646812f8d756c521d2ae3..7547703c560a5e62632a40ad717a61813fcb211c 100644 (file)
@@ -23,6 +23,7 @@ HOST_CC = $(CC)
 CFLAGS = -O
 CXXFLAGS = -O
 LDFLAGS =
+HOST_CFLAGS = $(CFLAGS)
 GLU_CFLAGS = 
 
 # Compiler for building demos/tests/etc