Commit 1052e45d authored by Andreas Beckmann's avatar Andreas Beckmann

use --warn-unresolved-symbols

parent 7854a422
Author: Andreas Beckmann <anbe@debian.org>
Description: link libraries after object files
to allow proper dependency resolution
drop now superfluous --no-as-needed and --unresolved-symbols=ignore-all flags
drop now superfluous --no-as-needed flag
emit a warning on unresolved symbols
--- a/src/Makefile
+++ b/src/Makefile
......@@ -29,7 +30,7 @@ Description: link libraries after object files
$(call quiet_cmd,LINK) -shared $(CFLAGS) $(LDFLAGS) $(BIN_LDFLAGS) \
- $(XNVCTRL_LIB) $(LIBS) $(GTK2_LIBS) \
- -Wl,--unresolved-symbols=ignore-all -o $(GTK2LIB) \
+ -o $(GTK2LIB) \
+ -Wl,--warn-unresolved-symbols -o $(GTK2LIB) \
-Wl,-soname -Wl,$(GTK2LIB_SONAME) \
- $(GTK2_OBJS) $(XCP_OBJS)
+ $(GTK2_OBJS) $(XCP_OBJS) \
......@@ -41,7 +42,7 @@ Description: link libraries after object files
$(call quiet_cmd,LINK) -shared $(CFLAGS) $(LDFLAGS) $(BIN_LDFLAGS) \
- $(XNVCTRL_LIB) $(LIBS) $(GTK3_LIBS) \
- -Wl,--unresolved-symbols=ignore-all -o $(GTK3LIB) \
+ -o $(GTK3LIB) \
+ -Wl,--warn-unresolved-symbols -o $(GTK3LIB) \
-Wl,-soname -Wl,$(GTK3LIB_SONAME) \
- $(GTK3_OBJS) $(XCP_OBJS)
+ $(GTK3_OBJS) $(XCP_OBJS) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment