summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwinaphex2014-12-10 18:32:08 +0100
committertwinaphex2014-12-10 18:32:08 +0100
commitf419216e418ff89575af301cc0b915d7fe13c0e8 (patch)
tree1ac313048efcdc431ae5715601f633e8c39a5e8a
parentacac41a910d52c74355d618d3677a740415b2d49 (diff)
downloadpicogpsp-f419216e418ff89575af301cc0b915d7fe13c0e8.tar.gz
picogpsp-f419216e418ff89575af301cc0b915d7fe13c0e8.tar.bz2
picogpsp-f419216e418ff89575af301cc0b915d7fe13c0e8.zip
--no-undefined doesn't work for Clang
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e117520..36f0113 100644
--- a/Makefile
+++ b/Makefile
@@ -39,8 +39,9 @@ else ifneq ($(findstring Darwin,$(shell uname -a)),)
endif
TARGET_NAME := gpsp
-LIBM = -lm
-CORE_DIR := .
+LIBM := -lm
+CORE_DIR := .
+LDFLAGS :=
# Unix
ifeq ($(platform), unix)
@@ -54,6 +55,7 @@ ifeq ($(platform), unix)
LIBM :=
endif
CFLAGS += $(FORCE_32BIT) -DHAVE_MMAP
+ LDFLAGS := -Wl,--no-undefined
# OS X
else ifeq ($(platform), osx)
TARGET := $(TARGET_NAME)_libretro.dylib
@@ -235,7 +237,6 @@ ifeq ($(FRONTEND_SUPPORTS_RGB565), 1)
CFLAGS += -DFRONTEND_SUPPORTS_RGB565
endif
-LDFLAGS := -Wl,--no-undefined
all: $(TARGET)