040_link.diff 512 B

12345678910111213141516171819202122
  1. From: Markus Koschany <apo@debian.org>
  2. Date: Fri, 19 Jan 2018 10:39:45 +0100
  3. Subject: link against only needed libraries
  4. ---
  5. src/Makefile | 2 +-
  6. 1 file changed, 1 insertion(+), 1 deletion(-)
  7. diff --git a/src/Makefile b/src/Makefile
  8. index c0b467b..aec5e4e 100644
  9. --- a/src/Makefile
  10. +++ b/src/Makefile
  11. @@ -37,7 +37,7 @@ else
  12. endif
  13. CC = g++
  14. -LFLAGS = `vdk-config-2 --libs` `pkg-config --libs gtk+-2.0`
  15. +LFLAGS = -Wl,--as-needed `vdk-config-2 --libs` `pkg-config --libs gtk+-2.0`
  16. ####### Implicit rules