This is an automated email from the git hooks/post-receive script.

cesarefalco-guest pushed a commit to branch master
in repository mame.

commit f8c148c325bbe733cdca5af0ae489768e85f3d78
Author: Cesare Falco <c.fa...@ubuntu.com>
Date:   Wed Mar 21 20:25:17 2018 +0100

    Use Gold linker and set ld flags to reduce memory.
---
 debian/changelog | 1 +
 debian/rules     | 6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 6b7f8ae..c15da0d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ mame (0.195+dfsg.1-1) experimental; urgency=medium
 
   [ Cesare Falco ]
   * New upstream release.
+  * Use Gold linker and set ld flags to reduce memory requirements
 
   [ Jordi Mallach ]
   * Reinstate check rule, as a failure to run indicates grave problems
diff --git a/debian/rules b/debian/rules
index 006fbd6..e11f2d2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,7 +19,11 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export DEB_CFLAGS_MAINT_APPEND = $(shell dpkg-buildflags --get CPPFLAGS)
 
 # Sacrifice linking speed to avoid using so much memory
-export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-keep-memory
+export DEB_LDFLAGS_MAINT_APPEND = \
+    -Wl,--no-keep-memory,--reduce-memory-overheads,--hash-size=31
+
+# Also, use Gold linker which is less greed for memory
+LDFLAGS = "-fuse-ld=gold"
 
 # taken verbatim from debian policy
 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/mame.git

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to