git » libfiu » commit 6f1eeac

libfiu: Use CFLAGS when attempting to build backtrace.o

author Alberto Bertogli
2012-04-05 19:24:54 UTC
committer Alberto Bertogli
2012-04-05 19:24:54 UTC
parent 83fb1e675de26ad5409e554e2947e53c8f1b10c0

libfiu: Use CFLAGS when attempting to build backtrace.o

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

libfiu/Makefile +2 -2

diff --git a/libfiu/Makefile b/libfiu/Makefile
index ea765bc..abd1676 100644
--- a/libfiu/Makefile
+++ b/libfiu/Makefile
@@ -37,8 +37,8 @@ LIB_SO_VER=0
 # We attempt to detect if we have the extensions we use in backtrace.c by just
 # attempting to compile it normally, and fall back to the dummy version if
 # that fails. Not very sophisticated but should be safe.
-USE_DUMMY_BACKTRACE := $(shell $(CC) -c backtrace.c -o /dev/null 2>/dev/null || \
-	echo -DDUMMY_BACKTRACE)
+USE_DUMMY_BACKTRACE := $(shell $(CC) $(ALL_CFLAGS) -c backtrace.c \
+	-o /dev/null 2>/dev/null || echo -DDUMMY_BACKTRACE)
 ifndef USE_DUMMY_BACKTRACE
 # The real backtrace needs linking against libdl.
 USE_LIBDL = -ldl