aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2014-08-04 19:39:12 +0100
committerChristopher Li <sparse@chrisli.org>2014-10-10 22:43:37 +0800
commit85e2e2a25266ffd24f08f3a396e7ac57fb307fbc (patch)
tree44e0e4146862a3f07cf0298d295836cb9cf505af /Makefile
parente23abfd8844e605cfdeecb29ff9b733c95f5d2d5 (diff)
downloadsparse-dev-85e2e2a25266ffd24f08f3a396e7ac57fb307fbc.tar.gz
Add support for multiarch system header files
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9a483398..3f3c71a9 100644
--- a/Makefile
+++ b/Makefile
@@ -36,6 +36,9 @@ HAVE_LLVM:=$(shell $(LLVM_CONFIG) --version >/dev/null 2>&1 && echo 'yes')
GCC_BASE = $(shell $(CC) --print-file-name=)
BASIC_CFLAGS = -DGCC_BASE=\"$(GCC_BASE)\"
+MULTIARCH_TRIPLET = $(shell $(CC) -print-multiarch 2>/dev/null)
+BASIC_CFLAGS += -DMULTIARCH_TRIPLET=\"$(MULTIARCH_TRIPLET)\"
+
ifeq ($(HAVE_GCC_DEP),yes)
BASIC_CFLAGS += -Wp,-MD,$(@D)/.$(@F).d
endif