summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/prboom/prboom.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/prboom/prboom.mk b/package/prboom/prboom.mk
index c39b5a34ab..7f9d6a0ba9 100644
--- a/package/prboom/prboom.mk
+++ b/package/prboom/prboom.mk
@@ -15,6 +15,12 @@ ifeq ($(BR2_PACKAGE_LIBPNG),y)
PRBOOM_DEPENDENCIES += libpng
endif
+ifeq ($(BR2_STATIC_LIBS),y)
+# SDL_mixer uses symbols from SDL, but ends up after it on the link
+# cmdline. Fix it by forcing the SDL libs at the very end
+PRBOOM_CONF_ENV += LIBS="$(shell $(STAGING_DIR)/usr/bin/sdl-config --static-libs)"
+endif
+
PRBOOM_CONF_OPTS = \
--oldincludedir=$(STAGING_DIR)/usr/include \
--with-sdl-prefix=$(STAGING_DIR)/usr \
OpenPOWER on IntegriCloud