-fPIC wasn't necessary afterall, and compiling without it increases fps
by about 10%.
This commit is contained in:
parent
1a6a136801
commit
d8a9fca756
5
Makefile
5
Makefile
|
@ -37,12 +37,11 @@ ifeq ($(STATIC_LINKING), 1)
|
||||||
TARGET := $(TARGET).a
|
TARGET := $(TARGET).a
|
||||||
else
|
else
|
||||||
TARGET := $(TARGET).so
|
TARGET := $(TARGET).so
|
||||||
CFLAGS += -fPIC
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ASFLAGS = $(CFLAGS)
|
ASFLAGS = $(CFLAGS)
|
||||||
INCDIRS := -I.
|
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
|
LDLIBS += -lz
|
||||||
|
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
@ -67,7 +66,7 @@ cpu_threaded.o: cpu_threaded.c
|
||||||
$(CC) -c -o $@ $< $(ASFLAGS) $(OPTIMIZE)
|
$(CC) -c -o $@ $< $(ASFLAGS) $(OPTIMIZE)
|
||||||
|
|
||||||
clean:
|
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 $(OBJS)
|
||||||
rm -f $(TARGET)
|
rm -f $(TARGET)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue