From: notaz Date: Sun, 30 Jun 2013 22:03:14 +0000 (+0200) Subject: temporary (?) workaround for ios build X-Git-Tag: v1.85~72 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9aee8770d2504ed14980dc47f4683bdf080310c9;p=picodrive.git temporary (?) workaround for ios build --- diff --git a/Makefile b/Makefile index 1a6374f0..b1d8f395 100644 --- a/Makefile +++ b/Makefile @@ -124,13 +124,18 @@ include platform/common/common.mak OBJS += $(OBJS_COMMON) CFLAGS += $(addprefix -D,$(DEFINES)) +ifneq ($(findstring gcc,$(CC)),) +LDFLAGS += -Wl,-Map=$(TARGET).map +endif + + target_: $(TARGET) clean: $(RM) $(TARGET) $(OBJS) $(TARGET): $(OBJS) - $(CC) -o $@ $(CFLAGS) $^ $(LDFLAGS) $(LDLIBS) -Wl,-Map=$(TARGET).map + $(CC) -o $@ $(CFLAGS) $^ $(LDFLAGS) $(LDLIBS) pprof: platform/linux/pprof.c $(CC) -O2 -ggdb -DPPROF -DPPROF_TOOL -I../../ -I. $^ -o $@ diff --git a/Makefile.libretro b/Makefile.libretro index ac9c0e92..f6cf55cd 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -128,3 +128,9 @@ PLATFORM = libretro NO_CONFIG_MAK = yes include Makefile + +# workaround another breakage on; +# Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn) +ifeq ($(platform), ios) +pico/memory.o: CFLAGS += -O0 +endif