[Build] Fails to build after LDFLAGS changes
Hi,
With the recent changes in devtools adding "-Wl" for each flag the compilation fails. PKGBUILD can be fixed with following:
diff --git a/PKGBUILD b/PKGBUILD
index d7c43d9..ae4454a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -111,7 +111,8 @@ prepare() {
build() {
# Doesn't compile without remove these flags as of 4.10
export CFLAGS="${CFLAGS/-fno-plt/}"
- export LDFLAGS="${LDFLAGS/,-z,now/}"
+ export LDFLAGS="${LDFLAGS/-Wl,-z,now/}"
+
cd "$srcdir"
Please also consider to update the version to 9.2 staging, tested and compiled locally.
diff --git a/PKGBUILD b/PKGBUILD
index d7c43d9..ae4454a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,20 +5,20 @@
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
pkgname=wine-staging
-pkgver=8.21
+pkgver=9.2
pkgrel=1
_pkgbasever=${pkgver/rc/-rc}
_winever=$_pkgbasever
#_winever=${_pkgbasever%.*}
-source=(https://dl.winehq.org/wine/source/8.x/wine-$_winever.tar.xz{,.sign}
+source=(https://dl.winehq.org/wine/source/9.x/wine-$_winever.tar.xz{,.sign}
"https://github.com/wine-staging/wine-staging/archive/v$_pkgbasever/wine-staging-v$_pkgbasever.tar.gz"
30-win32-aliases.conf
wine-binfmt.conf)
-sha512sums=('4d04d40141d2ea5e548b76aed870ac28d8a03241ffd4e761979c795310baa19136e54a8e518c6ea9bf563c3b23d3c4eb1baefc9906d7eeca469e9942ff99dc40'
+sha512sums=('9bffc10e573cc0ee0aaa37b09dda642c64c1456e39518256e39a752dc249e67283dece865cdb3e495b0950553a0dc004d906ecfc032c8fff936f3ef71c2d1a0d'
'SKIP'
- 'abba6084f2aefa8507c2a79c688b717f8137375168e5457ee40a0c96bfce31e9dc44370ecb5a8e8a397e90ce2eb8543fd07b447bf48c4b2d4c68aac9b3674214'
+ '9b04e1359c1b485fabc7de5b3e685f8e8b8f60951b0168484aaaecce9e524df45813edfdf4a6f3b1b69bffee4e3ba4c5b7eeabcdf260f1409d1d72f0e9a00cd0'
'6e54ece7ec7022b3c9d94ad64bdf1017338da16c618966e8baf398e6f18f80f7b0576edf1d1da47ed77b96d577e4cbb2bb0156b0b11c183a0accf22654b0a2bb'
'bdde7ae015d8a98ba55e84b86dc05aca1d4f8de85be7e4bd6187054bfe4ac83b5a20538945b63fb073caab78022141e9545685e4e3698c97ff173cf30859e285')
validpgpkeys=(5AC1A08B03BD7A313E0A955AF5E6E9EEB9461DD7