[wxmupen64plus] 37/71: Use DEB_LDFLAGS_MAINT_APPEND to add --as-needed linker flag

Sven Eckelmann ecsv-guest at moszumanska.debian.org
Thu Nov 26 06:23:34 UTC 2015


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

ecsv-guest pushed a commit to branch experimental
in repository wxmupen64plus.

commit 491e9ae4ad5fffdeb04d4c9eef1b8f2b43f159cb
Author: Sven Eckelmann <sven at narfation.org>
Date:   Mon May 7 21:50:03 2012 +0200

    Use DEB_LDFLAGS_MAINT_APPEND to add --as-needed linker flag
---
 debian/rules | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 30248a9..17acc58 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,7 @@
 # -*- makefile -*-
 
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed
 export CFLAGS=$(shell dpkg-buildflags --get CFLAGS)
 export CPPFLAGS=$(shell dpkg-buildflags --get CPPFLAGS)
 export CXXFLAGS=$(shell dpkg-buildflags --get CXXFLAGS)
@@ -12,8 +13,6 @@ DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 CFLAGS += -DCOREDIR="\"/usr/lib/$(DEB_HOST_MULTIARCH)/\""
 CXXFLAGS += -DCOREDIR="\"/usr/lib/$(DEB_HOST_MULTIARCH)/\""
 
-LDFLAGS += -Wl,--as-needed
-
 DEB_HOST_GNU_CPU ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
 DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 MAKEOPTIONS = --mupenapi=/usr/include/mupen64plus/ --prefix=/usr --bindir='/usr/games/' --libdir='/usr/lib/$(DEB_HOST_MULTIARCH)/mupen64plus/' --datadir='/usr/share/games/wxmupen64plus/' --destdir=debian/tmp

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



More information about the Pkg-games-commits mailing list