Skip to content

Commit 236edfd

Browse files
authored
Merge pull request #163 from stsquad/cross-compile-tweaks
src/Makefile: include CFLAGS in probe macros
2 parents 6053ca9 + 8e11724 commit 236edfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
H := \#
22

33
HAVE_C_HEADER = $(shell if echo "$(H)include <$(1)>" | \
4-
$(CC) -E - > /dev/null 2>&1; then echo "$(2)"; \
4+
$(CC) $(CFLAGS) -E - > /dev/null 2>&1; then echo "$(2)"; \
55
else echo "$(3)"; fi)
66

77
HAVE_C_MACRO = $(shell if echo "$(H)include <$(1)>" | \
8-
$(CC) -E - 2>&1 /dev/null | grep $(2) > /dev/null 2>&1; \
8+
$(CC) $(CFLAGS) -E - 2>&1 /dev/null | grep $(2) > /dev/null 2>&1; \
99
then echo 1;else echo 0; fi)
1010

1111
C_TARGETS := \

0 commit comments

Comments
 (0)