From 90bb3895312d4a0d95990bafb724466a06c0826e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 5 Mar 2015 19:47:18 +0100 Subject: [PATCH] linux-portable target works now --- Makefile.libretro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.libretro b/Makefile.libretro index 61deaad..8fe3060 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) -- 2.39.2