mirror of
https://github.com/libretro/RACE.git
synced 2024-11-23 08:59:49 +00:00
(OSX) Add CROSS_COMPILE rules
This commit is contained in:
parent
9b5ed6e590
commit
266d6e40dc
19
Makefile
19
Makefile
@ -67,15 +67,22 @@ else ifeq ($(platform),osx)
|
||||
else ifeq ($(shell uname -p),arm)
|
||||
MINVERSION =
|
||||
endif
|
||||
ifndef ($(NOUNIVERSAL))
|
||||
CFLAGS += $(ARCHFLAGS)
|
||||
CXXFLAGS += $(ARCHFLAGS)
|
||||
LDFLAGS += $(ARCHFLAGS)
|
||||
MINVERSION=
|
||||
endif
|
||||
|
||||
fpic += $(MINVERSION)
|
||||
|
||||
ifeq ($(CROSS_COMPILE),1)
|
||||
TARGET_RULE = -target $(LIBRETRO_APPLE_PLATFORM) -isysroot $(LIBRETRO_APPLE_ISYSROOT)
|
||||
CFLAGS += $(TARGET_RULE)
|
||||
CPPFLAGS += $(TARGET_RULE)
|
||||
CXXFLAGS += $(TARGET_RULE)
|
||||
LDFLAGS += $(TARGET_RULE)
|
||||
endif
|
||||
|
||||
CFLAGS += $(ARCHFLAGS)
|
||||
CXXFLAGS += $(ARCHFLAGS)
|
||||
LDFLAGS += $(ARCHFLAGS)
|
||||
|
||||
|
||||
# iOS
|
||||
else ifneq (,$(findstring ios,$(platform)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user