aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2012-06-13 18:28:24 +0200
committerThomas Preud'homme <robotux@celest.fr>2012-06-13 18:28:24 +0200
commitb0ebcfa7bae4a8743698107a82fffc598818ccc5 (patch)
treeadd12553a99ea21e1df7f9c5cf2d3bed93711eb7 /Makefile
parent2e7a1af5d5d659c94b53ba2d06b84875942eb6fe (diff)
downloadtinycc-b0ebcfa7bae4a8743698107a82fffc598818ccc5.tar.gz
tinycc-b0ebcfa7bae4a8743698107a82fffc598818ccc5.tar.bz2
Detect multiarch on Kfreebsd and Hurd
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3b6acdd..ba94577 100644
--- a/Makefile
+++ b/Makefile
@@ -40,6 +40,8 @@ endif
ifeq ($(ARCH),i386)
NATIVE_DEFINES=-DTCC_TARGET_I386
NATIVE_DEFINES+=$(if $(wildcard /lib/i386-linux-gnu),-DCONFIG_MULTIARCHDIR=\"i386-linux-gnu\")
+NATIVE_DEFINES+=$(if $(wildcard /lib/i386-kfreebsd-gnu),-DCONFIG_MULTIARCHDIR=\"i386-kfreebsd-gnu\")
+NATIVE_DEFINES+=$(if $(wildcard /lib/i386-gnu),-DCONFIG_MULTIARCHDIR=\"i386-gnu\")
CFLAGS+=-m32
else
ifeq ($(ARCH),x86-64)
@@ -47,6 +49,7 @@ NATIVE_DEFINES=-DTCC_TARGET_X86_64
CFLAGS+=-m64
NATIVE_DEFINES+=$(if $(wildcard /usr/lib64),-DCONFIG_LDDIR=\"lib64\")
NATIVE_DEFINES+=$(if $(wildcard /lib/x86_64-linux-gnu),-DCONFIG_MULTIARCHDIR=\"x86_64-linux-gnu\")
+NATIVE_DEFINES+=$(if $(wildcard /lib/x86_64-kfreebsd-gnu),-DCONFIG_MULTIARCHDIR=\"x86_64-kfreebsd-gnu\")
endif
endif