diff options
author | Armin Preiml | 2022-10-12 17:57:38 +0200 |
---|---|---|
committer | Armin Preiml | 2022-10-12 17:57:38 +0200 |
commit | bde98bbb586a4c8644b567ec58ba2c5dbc56e602 (patch) | |
tree | 206fcf1720ef5cc2ec86fa38619633ff4cca2d68 | |
parent | 59d7e2012433be0f1094874532b3a8a1051269d0 (diff) | |
download | aur-bde98bbb586a4c8644b567ec58ba2c5dbc56e602.tar.gz |
fix linker fail if -Wl is present
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 8 insertions, 3 deletions
@@ -1,6 +1,6 @@ pkgbase = hare-git pkgdesc = The Hare systems programming language - pkgver = r2679.82213191 + pkgver = r2690.7ed35bfb pkgrel = 1 url = https://harelang.org arch = x86_64 @@ -1,7 +1,7 @@ # Maintainer: Armin Preiml <apreiml@strohwolke.at> pkgname=hare-git _pkgname=hare -pkgver=r2679.82213191 +pkgver=r2690.7ed35bfb pkgrel=1 license=("MPL2") pkgdesc="The Hare systems programming language" @@ -33,7 +33,6 @@ sha512sums=('SKIP' provides=("hare") conflicts=("hare") -# options=(debug) pkgver() { cd "$srcdir/$_pkgname" @@ -45,6 +44,12 @@ build() { cp "$srcdir/config.$CARCH.mk" config.mk export VERSION="dev+$(echo "$_commit" | cut -c-7)" export LOCALVER=arch + + # remove '-Wl,' prefix if present, since it is only required when + # the linker is invoked indirectly. Keeping it will cause the linker to + # fail. + export LDFLAGS=${LDFLAGS#"-Wl,"} + make -j1 # XXX: parallel build driver builds are broken } |