mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-29 06:10:09 +08:00
Detect multiarch on Kfreebsd and Hurd
This commit is contained in:
parent
2e7a1af5d5
commit
b0ebcfa7ba
3
Makefile
3
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user