mirror of
https://github.com/FunKey-Project/gpsp_libretro.git
synced 2026-03-27 06:12:54 +01:00
video output now works in statically linked builds.
core can't be used as a shared library yet due to the dynarec not working when compiled with -fPIC
This commit is contained in:
12
Makefile
12
Makefile
@@ -1,10 +1,10 @@
|
||||
TARGET := gpsp_libretro.so
|
||||
TARGET := gpsp_libretro
|
||||
|
||||
CC = gcc
|
||||
AR = psp-ar
|
||||
STATIC_LINKING = 0
|
||||
|
||||
CFLAGS += -fPIC -Werror-implicit-function-declaration
|
||||
CFLAGS += -Werror-implicit-function-declaration
|
||||
CFLAGS += -DPC_BUILD -Wall -m32
|
||||
CFLAGS += -D__LIBRETRO__
|
||||
|
||||
@@ -33,14 +33,18 @@ OBJS += zip.o
|
||||
OBJS += libretro.o
|
||||
OBJS += libco/libco.o
|
||||
|
||||
|
||||
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
|
||||
LDLIBS += -lz
|
||||
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
|
||||
Reference in New Issue
Block a user