Obey CFLAGS and LDFLAGS when testing libs (nice when profiling.)

This commit is contained in:
Themaister 2011-02-28 22:30:06 +01:00
parent 7c16424ba3
commit bbf4804d12
2 changed files with 3 additions and 3 deletions

View File

@ -113,7 +113,7 @@ ifneq ($(V),1)
Q := @
endif
CFLAGS = -Wall -O3 -g -std=gnu99 -I.
CFLAGS += -Wall -O3 -g -std=gnu99 -I.
all: $(TARGET) config.mk

View File

@ -50,7 +50,7 @@ check_lib()
extralibs="$4"
$CC -o $TEMP_EXE $TEMP_C $INCLUDE_DIRS $LIBRARY_DIRS $extralibs $2 2>/dev/null >/dev/null && answer=yes && eval HAVE_$1=yes
$CC -o $TEMP_EXE $TEMP_C $INCLUDE_DIRS $LIBRARY_DIRS $CFLAGS $LDFLAGS $extralibs $2 2>/dev/null >/dev/null && answer=yes && eval HAVE_$1=yes
echo $answer
@ -75,7 +75,7 @@ check_lib_cxx()
extralibs="$4"
$CXX -o $TEMP_EXE $TEMP_CXX $INCLUDE_DIRS $LIBRARY_DIRS $extralibs $2 2>/dev/null >/dev/null && answer=yes && eval HAVE_$1=yes
$CXX -o $TEMP_EXE $TEMP_CXX $INCLUDE_DIRS $LIBRARY_DIRS $CFLAGS $LDFLAGS $extralibs $2 2>/dev/null >/dev/null && answer=yes && eval HAVE_$1=yes
echo $answer