Commit dedc8894 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

Makefile: add SDL_STATIC so Fury can static link SDL on Linux, but not any of...

Makefile: add SDL_STATIC so Fury can static link SDL on Linux, but not any of its dependencies or other required libraries
parent 573b07ce
......@@ -339,6 +339,7 @@ STARTUP_WINDOW ?= 1
RETAIL_MENU ?= 0
POLYMER ?= 1
USE_OPENGL := 1
SDL_STATIC ?= 0
# Library toggles
HAVE_GTK2 := 1
......@@ -926,6 +927,12 @@ ifeq ($(RENDERTYPE),SDL)
endif
else
ifneq ($(SDLCONFIG),)
ifneq ($(SDL_STATIC),0)
override SDLCONFIG_LIBS := -Wl,-Bstatic -l$(SDLNAME) -Wl,-Bdynamic $(strip $(subst -l$(SDLNAME),,$(shell $(SDLCONFIG) --static-libs)))
# for some reason SteamRT has a GCC with --enable-default-pie but its SDL2 has it disabled. WTF?
LINKERFLAGS += -no-pie
endif
SDLCONFIG_CFLAGS := $(strip $(subst -Dmain=SDL_main,,$(shell $(SDLCONFIG) --cflags)))
SDLCONFIG_LIBS := $(strip $(subst -mwindows,,$(shell $(SDLCONFIG) --libs)))
......
......@@ -11,6 +11,7 @@ ifeq ($(FURY),1)
RETAIL_MENU := 1
STANDALONE := 1
USE_LIBVPX := 0
SDL_STATIC := 1
endif
### Platform and Toolchain Configuration
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment