diff --git a/adime-2.2.1-so-fixes.patch b/adime-2.2.1-so-fixes.patch index 948d79e..e2fcfda 100644 --- a/adime-2.2.1-so-fixes.patch +++ b/adime-2.2.1-so-fixes.patch @@ -9,19 +9,6 @@ IMPLIB_NAME = $(LIB_DIR)/$(IMPLIB_BASENAME) LIB_NAME = $(IMPLIB_NAME) -@@ -153,7 +153,11 @@ - SFLAGS = $(WFLAGS) - ifndef SYMBOLMODE - LFLAGS += -s --LIB_FLAGS = `allegro-config --libs release $(ALLEGRO_CONFIG_FLAGS)` -+# allegro-config --libs drags in -lalleg_unshareable, which is non-PIC -+# and thus should only be in the application not a .so file. This means all -+# applications which use adime must be linked with: -+# -Wl,--export-dynamic -lalleg_unsharable (or `allegro-config --libs`) -+LIB_FLAGS= $(shell allegro-config --libs | sed 's/-lalleg_unsharable//') - endif - endif - endif @@ -236,7 +240,7 @@ LINK_LIB_DEPS =