summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalle Vahlman <kalle.vahlman@movial.com>2000-01-01 04:10:59 +0000
committerKalle Vahlman <kalle.vahlman@movial.com>2000-01-01 04:21:48 +0000
commitedf53ed2849a0b425d2ae2dd60860ed1f0830fa8 (patch)
tree3c3b60baa6e15341bbc4a33c6a449d78f7cc280f
parentab240a16eba9dbdfc3c82e97fef589977680f6b8 (diff)
Fix linking issue by forcing pthread into ELF DT_NEEDED tag
For some reason giving --as-needed for the linker drops pthread from the hdmiservice.so DT_NEEDED tag, while it clearly requires it since the final link fails to find pthread symbols. Work around this by adding --no-as-needed to the LDFLAGS.
-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