From c9a0a79b1596709ace71f8284af0909fb277beb0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 31 Aug 2015 20:52:25 +0200 Subject: [PATCH] Update libretro-test Makefiles --- cores/libretro-test/Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/cores/libretro-test/Makefile b/cores/libretro-test/Makefile index 9e947d5b3d..8fee362f91 100644 --- a/cores/libretro-test/Makefile +++ b/cores/libretro-test/Makefile @@ -57,10 +57,11 @@ else ifeq ($(platform), emscripten) fpic := -fPIC SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined else ifeq ($(platform), vita) - TARGET := $(TARGET_NAME).a + TARGET := $(TARGET_NAME)_vita.a CC = arm-vita-eabi-gcc AR = arm-vita-eabi-ar CFLAGS += -Wl,-q -Wall -O3 + STATIC_LINKING = 1 else CC = gcc TARGET := $(TARGET_NAME)_libretro.dll @@ -86,13 +87,10 @@ endif all: $(TARGET) -ifeq ($(platform), vita) - $(TARGET): $(OBJECTS) - $(AR) -rc $@ $^ +ifeq ($(STATIC_LINKING), 1) + $(AR) rcs $@ $(OBJECTS) else - -$(TARGET): $(OBJECTS) $(CC) $(fpic) $(SHARED) $(INCLUDES) -o $@ $(OBJECTS) $(LDFLAGS) endif