mirror of
https://github.com/86Box/probing-tools.git
synced 2026-02-21 09:05:34 -07:00
clib: Tell gcc to compile for a base i386 target
Only benefits Linux targets; Windows is still lower bound to 686-cmov by MinGW's crt0.
This commit is contained in:
@@ -16,7 +16,14 @@
|
||||
#
|
||||
|
||||
VPATH = . ../clib
|
||||
CC ?= "gcc"
|
||||
CC ?= "gcc"
|
||||
ifneq "$(shell $(CC) -dumpmachine | grep -w i.86)" ""
|
||||
CFLAGS += -march=i386
|
||||
else
|
||||
ifneq "$(shell $(CC) -dumpmachine | grep -w x86_64)" ""
|
||||
CFLAGS += -march=x86-64
|
||||
endif
|
||||
endif
|
||||
|
||||
all: $(DEST)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user