mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Add static linking options to libretro-test Makefile
This commit is contained in:
parent
6feff79547
commit
469889921f
@ -1,3 +1,6 @@
|
|||||||
|
STATIC_LINKING := 0
|
||||||
|
AR := ar
|
||||||
|
|
||||||
ifeq ($(platform),)
|
ifeq ($(platform),)
|
||||||
platform = unix
|
platform = unix
|
||||||
ifeq ($(shell uname -a),)
|
ifeq ($(shell uname -a),)
|
||||||
@ -44,12 +47,17 @@ ifndef ($(NOUNIVERSAL))
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(STATIC_LINKING), 1)
|
||||||
|
EXT := a
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(platform), unix)
|
ifeq ($(platform), unix)
|
||||||
TARGET := $(TARGET_NAME)_libretro.so
|
EXT ?= so
|
||||||
|
TARGET := $(TARGET_NAME)_libretro.$(EXT)
|
||||||
fpic := -fPIC
|
fpic := -fPIC
|
||||||
SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined
|
SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined
|
||||||
else ifeq ($(platform), linux-portable)
|
else ifeq ($(platform), linux-portable)
|
||||||
TARGET := $(TARGET_NAME)_libretro.so
|
TARGET := $(TARGET_NAME)_libretro.$(EXT)
|
||||||
fpic := -fPIC -nostdlib
|
fpic := -fPIC -nostdlib
|
||||||
SHARED := -shared -Wl,--version-script=link.T
|
SHARED := -shared -Wl,--version-script=link.T
|
||||||
LIBM :=
|
LIBM :=
|
||||||
@ -104,7 +112,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
OBJECTS := libretro-test.o
|
OBJECTS := libretro-test.o
|
||||||
CFLAGS += -Wall -pedantic $(fpic)
|
CFLAGS += -I../../libretro-common/include -Wall -pedantic $(fpic)
|
||||||
|
|
||||||
ifneq (,$(findstring qnx,$(platform)))
|
ifneq (,$(findstring qnx,$(platform)))
|
||||||
CFLAGS += -Wc,-std=c99
|
CFLAGS += -Wc,-std=c99
|
||||||
|
Loading…
x
Reference in New Issue
Block a user