From f7c8304dc3fffc1b39db2a59a6a72064047911bb Mon Sep 17 00:00:00 2001 From: aliaspider Date: Sat, 23 Jan 2016 07:49:51 +0100 Subject: [PATCH] (libretro-db) Makefile: fix the testlib.so target --- libretro-db/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libretro-db/Makefile b/libretro-db/Makefile index b81797d92f..52147089b2 100644 --- a/libretro-db/Makefile +++ b/libretro-db/Makefile @@ -112,11 +112,12 @@ libretrodb_tool: $(RARCHDB_TOOL_OBJS) rmsgpack_test: $(RMSGPACK_OBJS) $(CC) $(INCFLAGS) $(RMSGPACK_OBJS) -g -o $@ -testlib.so: $(TESTLIB_OBJS) +testlib.so: CFLAGS += -fPIC +testlib.so: clean $(TESTLIB_OBJS) $(CC) $(INCFLAGS) $(TESTLIB_FLAGS) $(TESTLIB_OBJS) -o $@ check: testlib.so tests.lua lua ./tests.lua clean: - rm -rf $(TARGETS) $(PLAIN_CONVERTER_OBJS) $(LUA_CONVERTER_OBJS) $(C_CONVERTER_OBJS) $(RARCHDB_TOOL_OBJS) $(RMSGPACK_OBJS) $(TESTLIB_OBJS) + rm -rf $(TARGETS) $(PLAIN_CONVERTER_OBJS) $(LUA_CONVERTER_OBJS) $(C_CONVERTER_OBJS) $(RARCHDB_TOOL_OBJS) $(RMSGPACK_OBJS) $(TESTLIB_OBJS) testlib.so