summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 957550f..d956aa9 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,9 @@
PACKAGE_NAME=hdmi_service
CFLAGS += -c -Wall -O2 -fPIC
-LDFLAGS += -L./ -lpthread -shared
+# no-as-needed is a work-around, pthread is dropped from the DT_NEEDED
+# for some reason, and yet the final link fails due to missing symbols
+LDFLAGS += -L./ -Wl,--no-as-needed -lpthread -shared
LDFLAGS_2 = -L./
INCLUDES += -I./include
HDMILIBS = hdmiservice.so