summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLlewelyn Trahaearn2016-06-28 18:49:33 -0700
committerLlewelyn Trahaearn2016-06-28 18:49:33 -0700
commitee9177f3d72ba30149ab97f324fd8086329f3284 (patch)
tree2a3ca18bb63ccf8b4f5c641e85131aae59bdb06d
parente2987b2c41462b89495c9030231b7af685952723 (diff)
downloadaur-ee9177f3d72ba30149ab97f324fd8086329f3284.tar.gz
Smack LDFLAGS environment variable so it respects system defaults.
-rw-r--r--PKGBUILD9
1 files changed, 6 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 1721013e05f..b3aff1b77a9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,16 +17,19 @@ source=("http://ftp.gnome.org/pub/GNOME/sources/${pkgname#lib32-}/0.7/${pkgname#
sha512sums=('5d656ee7ee5caeb95aec4adb973795dc72fc620cd36b9fe3d4f910951945bd5df70ee1c422cd6aca9c38a9ba2760562e479fc8fb9269449924a5b24d762d03df')
build() {
- cd "${srcdir}/${pkgname#lib32-}-${pkgver}"
+ # Modify environment to generate 32-bit ELF. Respects flags defined in makepkg.conf
export CC='gcc -m32'
export CXX='g++ -m32'
- export LDFLAGS='-m32'
+ export LDFLAGS+=' -m32'
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
+# export PKG_CONFIG_LIBDIR='/usr/lib32/pkgconfig'
+
+ cd "${pkgname#lib32-}-${pkgver}"
./configure --prefix=/usr --disable-static --libdir=/usr/lib32
make
}
package() {
- make -C "${srcdir}/${pkgname#lib32-}-${pkgver}" DESTDIR="${pkgdir}" install
+ make -C "${pkgname#lib32-}-${pkgver}" DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}/usr/"{bin,include,share}
}