summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraliaspider2014-12-09 10:13:44 +0100
committeraliaspider2014-12-09 10:13:44 +0100
commitd8a9fca756bf96a8fdf626d8bf0cb48bafaae6c2 (patch)
treecedee4710f5f0d477162a4f2517d13c04a1cdc8d
parent1a6a13680119d40bb20f1bd8a7e62a76c6b16d58 (diff)
downloadpicogpsp-d8a9fca756bf96a8fdf626d8bf0cb48bafaae6c2.tar.gz
picogpsp-d8a9fca756bf96a8fdf626d8bf0cb48bafaae6c2.tar.bz2
picogpsp-d8a9fca756bf96a8fdf626d8bf0cb48bafaae6c2.zip
-fPIC wasn't necessary afterall, and compiling without it increases fps
by about 10%.
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0d428ba..c70231c 100644
--- a/Makefile
+++ b/Makefile
@@ -37,12 +37,11 @@ ifeq ($(STATIC_LINKING), 1)
TARGET := $(TARGET).a
else
TARGET := $(TARGET).so
-CFLAGS += -fPIC
endif
ASFLAGS = $(CFLAGS)
INCDIRS := -I.
-LDFLAGS += -shared -m32 -Wl,--no-undefined -Wl,--version-script=link.T -fPIC
+LDFLAGS += -shared -m32 -Wl,--no-undefined -Wl,--version-script=link.T
LDLIBS += -lz
all: $(TARGET)
@@ -67,7 +66,7 @@ cpu_threaded.o: cpu_threaded.c
$(CC) -c -o $@ $< $(ASFLAGS) $(OPTIMIZE)
clean:
-# rm -f main.o memory.o input.o sound.o cpu_threaded.o x86_stub.o cheats.o zip.o libretro.o
+# rm -f main.o memory.o input.o sound.o x86_stub.o cheats.o zip.o libretro.o
rm -f $(OBJS)
rm -f $(TARGET)