Use Libs.private to avoid unnecesary direct linking.
---
WINGs/Makefile.am | 3 ++-
wrlib/Makefile.am | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/WINGs/Makefile.am b/WINGs/Makefile.am
index 8616ae4..c3c35c3 100644
--- a/WINGs/Makefile.am
+++ b/WINGs/Makefile.am
@@ -97,7 +97,8 @@ WINGs.pc: Makefile
@echo 'Description: Small widget set with the NeXTStep(TM) look and
feel' >> $@
@echo 'Version: $(VERSION)' >> $@
@echo 'Requires: wrlib' >> $@
- @echo 'Libs: $(lib_search_path) -lWINGs $(XFTLIBS) $(XLIBS) -lm
$(INTLIBS)' >> $@
+ @echo 'Libs: $(lib_search_path) -lWINGs' >> $@
+ @echo 'Libs.private: $(XFTLIBS) $(XLIBS) -lm $(INTLIBS)' >> $@
@echo 'Cflags: $(inc_search_path)' >> $@
get-wings-flags: get-wings-flags.in Makefile
diff --git a/wrlib/Makefile.am b/wrlib/Makefile.am
index 01bcb80..24c880d 100644
--- a/wrlib/Makefile.am
+++ b/wrlib/Makefile.am
@@ -59,7 +59,8 @@ wrlib.pc: Makefile
@echo 'Name: wrlib' > $@
@echo 'Description: Image manipulation and conversion library' >> $@
@echo 'Version: $(VERSION)' >> $@
- @echo 'Libs: $(lib_search_path) -lwraster $(GFXLIBS) $(XLIBS) -lm' >> $@
+ @echo 'Libs: $(lib_search_path) -lwraster' >> $@
+ @echo 'Libs.private: $(GFXLIBS) $(XLIBS) -lm' >> $@
@echo 'Cflags: $(inc_search_path)' >> $@
get-wraster-flags: get-wraster-flags.in Makefile
--
1.7.1
--
To unsubscribe, send mail to [email protected].