From: twinaphex Date: Thu, 5 Mar 2015 18:47:18 +0000 (+0100) Subject: linux-portable target works now X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90bb3895312d4a0d95990bafb724466a06c0826e;p=picodrive.git linux-portable target works now --- diff --git a/Makefile.libretro b/Makefile.libretro index 61deaad5..8fe30607 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -24,6 +24,7 @@ CC_AS ?= $(CC) CFLAGS ?= TARGET_NAME := picodrive +LIBM := -lm asm_memory = 0 asm_render = 0 @@ -41,6 +42,7 @@ ifeq ($(platform), unix) else ifeq ($(platform), linux-portable) TARGET := $(TARGET_NAME)_libretro.so SHARED := -shared -nostdlib -L. -lmusl + LIBM := DONT_COMPILE_IN_ZLIB = 1 CFLAGS += -DFAMEC_NO_GOTOS else ifeq ($(platform), osx) @@ -250,7 +252,7 @@ endif CFLAGS += -fPIC ifeq ($(findstring Haiku,$(shell uname -a)),) - LDLIBS += -lm + LDLIBS += $(LIBM) endif SHARED ?= -shared LDFLAGS += $(SHARED)