aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-04-17 13:10:23 +0200
committerLoïc Hoguin <[email protected]>2020-04-17 13:13:50 +0200
commit2d006796921bae7250d5c273fa61bd5f1e1e4541 (patch)
tree7ca953ed1c8fb05481fe890e9b79e9324fab26a9 /Makefile
parent37a28c68e06895ede3cf8a27f4dd4223932ef7f4 (diff)
downloadesdl2-2d006796921bae7250d5c273fa61bd5f1e1e4541.tar.gz
esdl2-2d006796921bae7250d5c273fa61bd5f1e1e4541.tar.bz2
esdl2-2d006796921bae7250d5c273fa61bd5f1e1e4541.zip
Update Erlang.mk and tweak the Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 4 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index e49a5fe..c4af998 100644
--- a/Makefile
+++ b/Makefile
@@ -12,20 +12,15 @@ DEP_PLUGINS = nif_helpers
TEST_DEPS = $(if $(CI_ERLANG_MK),ci.erlang.mk)
-SDL2_CFLAGS = $(shell sdl2-config --cflags)
-# SDL 2.0.3 has this option enabled that causes problems with NIF functions.
-SDL2_LIBS_FILTER_OUT = -Wl,--no-undefined
-SDL2_LIBS = $(filter-out $(SDL2_LIBS_FILTER_OUT),$(shell sdl2-config --static-libs))
-
# CI configuration.
dep_ci.erlang.mk = git https://github.com/ninenines/ci.erlang.mk master
DEP_EARLY_PLUGINS = ci.erlang.mk
-AUTO_CI_OTP ?= OTP-19+
+AUTO_CI_OTP ?= OTP-20+
# AUTO_CI_HIPE ?= OTP-LATEST
# AUTO_CI_ERLLVM ?= OTP-LATEST
-AUTO_CI_WINDOWS ?= OTP-19+
+AUTO_CI_WINDOWS ?= OTP-20+
# Standard targets.
@@ -33,9 +28,10 @@ include erlang.mk
# SDL2 flags.
+SDL2_CFLAGS = $(shell sdl2-config --cflags)
CFLAGS += $(SDL2_CFLAGS)
# @todo -undefined dynamic_lookup on OSX?
-LDLIBS += $(SDL2_LIBS) -lSDL2_image -lSDL2_ttf
+LDLIBS += -lSDL2 -lSDL2_image -lSDL2_ttf
# Clean the environment before each CI builds.