1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
From: Sam Morris <sam@robots.org.uk>
Date: Mon, 5 Dec 2016 02:24:42 +0000
Subject: Link with --as-needed
---
Rakefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Rakefile b/Rakefile
index fbc877c..70380f2 100644
--- a/Rakefile
+++ b/Rakefile
@@ -84,7 +84,7 @@ task :make do
ruby 'extconf.rb'
system 'make clean'
bail_on_failure
- system 'make', 'V=1'
+ system 'make', 'V=1', 'DLDFLAGS=$(ldflags) $(dldflags) $(ARCH_FLAG) -Wl,--as-needed'
bail_on_failure
end
end
|