xsettingsd: fix scons script to pass LDFLAGS
This commit is contained in:
parent
1b64c8f2fc
commit
10bf0ba049
2 changed files with 15 additions and 5 deletions
14
srcpkgs/xsettingsd/patches/scons.patch
Normal file
14
srcpkgs/xsettingsd/patches/scons.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
diff --git SConstruct SConstruct
|
||||
index 4254271..c81e5ae 100644
|
||||
--- SConstruct
|
||||
+++ SConstruct
|
||||
@@ -44,7 +44,8 @@ env = Environment(
|
||||
env.Append(CPPFLAGS=os.environ.get('CPPFLAGS', ''),
|
||||
CFLAGS=os.environ.get('CFLAGS', ''),
|
||||
CXXFLAGS=os.environ.get('CXXFLAGS', ''),
|
||||
- LDFLAGS=os.environ.get('LDFLAGS', ''))
|
||||
+ LINKFLAGS=os.environ.get('LDFLAGS', ''))
|
||||
+env.Replace(CXX=os.environ.get("CXX", ""))
|
||||
|
||||
env.Append(CCFLAGS='-Wall -Werror -Wno-narrowing')
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'xsettingsd'
|
||||
pkgname=xsettingsd
|
||||
version=0.0.20151712
|
||||
version=0.0.20160524
|
||||
revision=1
|
||||
_git_ref=b4999f5e9e99224caf97d09f25ee731774ecd7be
|
||||
wrksrc=$pkgname-$_git_ref
|
||||
|
@ -14,10 +14,6 @@ homepage="https://github.com/derat/xsettingsd"
|
|||
distfiles="https://github.com/derat/xsettingsd/archive/${_git_ref}.tar.gz"
|
||||
checksum=16c14ce201d71f5ca66477cfcc276874e3af8d1bc3bb01cd04059ca9757c4449
|
||||
|
||||
pre_configure() {
|
||||
sed -i '48ienv.Replace(CXX=os.environ.get("CXX", ""))' SConstruct
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vbin xsettingsd
|
||||
vbin dump_xsettings
|
||||
|
|
Loading…
Reference in a new issue