Add CROSS_COMPILE rules
This commit is contained in:
parent
08d2fa1ebe
commit
fd20793545
16
Makefile
16
Makefile
|
@ -104,10 +104,18 @@ else ifeq ($(platform), osx)
|
||||||
ifeq ($(HAVE_DYNAREC),1)
|
ifeq ($(HAVE_DYNAREC),1)
|
||||||
HAVE_MMAP = 1
|
HAVE_MMAP = 1
|
||||||
endif
|
endif
|
||||||
ifndef ($(NOUNIVERSAL))
|
|
||||||
CFLAGS += $(ARCHFLAGS)
|
ifeq ($(CROSS_COMPILE),1)
|
||||||
LDFLAGS += $(ARCHFLAGS)
|
TARGET_RULE = -target $(LIBRETRO_APPLE_PLATFORM) -isysroot $(LIBRETRO_APPLE_ISYSROOT)
|
||||||
endif
|
CFLAGS += $(TARGET_RULE)
|
||||||
|
CPPFLAGS += $(TARGET_RULE)
|
||||||
|
CXXFLAGS += $(TARGET_RULE)
|
||||||
|
LDFLAGS += $(TARGET_RULE)
|
||||||
|
endif
|
||||||
|
|
||||||
|
CFLAGS += $(ARCHFLAGS)
|
||||||
|
CXXFLAGS += $(ARCHFLAGS)
|
||||||
|
LDFLAGS += $(ARCHFLAGS)
|
||||||
|
|
||||||
# iOS
|
# iOS
|
||||||
else ifneq (,$(findstring ios,$(platform)))
|
else ifneq (,$(findstring ios,$(platform)))
|
||||||
|
|
Loading…
Reference in New Issue