aboutsummaryrefslogtreecommitdiff
path: root/misc/langdrill/040_link.diff
diff options
context:
space:
mode:
authorHunter Sezen <orbea@fredslev.dk>2018-03-19 22:33:55 +0000
committerDavid Spencer <idlemoor@slackbuilds.org>2018-03-19 22:33:55 +0000
commit12e3c47e472eb2c2f34cb5778514de9d22df529b (patch)
tree257d805d09127148579ff1e49a40334e8f6da910 /misc/langdrill/040_link.diff
parentb95c1cf740ec45c94acb9b8e77a4a2bd51409e0a (diff)
misc/langdrill: Added (language drill tests).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'misc/langdrill/040_link.diff')
-rw-r--r--misc/langdrill/040_link.diff21
1 files changed, 21 insertions, 0 deletions
diff --git a/misc/langdrill/040_link.diff b/misc/langdrill/040_link.diff
new file mode 100644
index 000000000000..cf11143cffe4
--- /dev/null
+++ b/misc/langdrill/040_link.diff
@@ -0,0 +1,21 @@
+From: Markus Koschany <apo@debian.org>
+Date: Fri, 19 Jan 2018 10:39:45 +0100
+Subject: link against only needed libraries
+
+---
+ src/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index c0b467b..aec5e4e 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -37,7 +37,7 @@ else
+ endif
+
+ CC = g++
+-LFLAGS = `vdk-config-2 --libs` `pkg-config --libs gtk+-2.0`
++LFLAGS = -Wl,--as-needed `vdk-config-2 --libs` `pkg-config --libs gtk+-2.0`
+
+
+ ####### Implicit rules