X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.libretro;h=8fe30607f846c743e830a9d8e145f29115faf681;hb=90bb3895312d4a0d95990bafb724466a06c0826e;hp=61deaad5c2efd748fc94b35d4d96100db1fdafa5;hpb=ceaf498c233ba9ff8461f40cd405c26d01843cfe;p=picodrive.git 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)