summaryrefslogtreecommitdiff
path: root/libre-multilib/lib32-mesa-libcl
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-10-03 15:23:09 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-10-03 15:23:09 -0300
commit677a0151eee4e73d8d2715f7e4b6ad364e2e85bc (patch)
tree4511f72e9446a7eb6ff2f0b1fd1184f0242a53de /libre-multilib/lib32-mesa-libcl
parent34accbf1084a7e552c84c9fbe492e6f440651dd0 (diff)
downloadabslibre-677a0151eee4e73d8d2715f7e4b6ad364e2e85bc.tar.gz
abslibre-677a0151eee4e73d8d2715f7e4b6ad364e2e85bc.tar.bz2
abslibre-677a0151eee4e73d8d2715f7e4b6ad364e2e85bc.zip
fixing multilib build in lib32-mesa-libcl and lib32-opencl-mesa
Diffstat (limited to 'libre-multilib/lib32-mesa-libcl')
-rw-r--r--libre-multilib/lib32-mesa-libcl/PKGBUILD17
1 files changed, 12 insertions, 5 deletions
diff --git a/libre-multilib/lib32-mesa-libcl/PKGBUILD b/libre-multilib/lib32-mesa-libcl/PKGBUILD
index 24f208812..f73d748df 100644
--- a/libre-multilib/lib32-mesa-libcl/PKGBUILD
+++ b/libre-multilib/lib32-mesa-libcl/PKGBUILD
@@ -23,14 +23,21 @@ sha512sums=('c5edc62dcd953b67307cd8a10921ad3f07bd72cdb81ca69f68706a757fd6c5e439f
build() {
cd $srcdir/${pkgbase^}-$pkgver
- export CC="gcc -m32"
- export CXX="g++ -m32"
- export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
- export LLVM_CONFIG=/usr/bin/llvm-config32
+ export CC='gcc -m32'
+ export CXX='g++ -m32'
+ export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
+ export LLVM_CONFIG='/usr/bin/llvm-config32'
+ if [[ $(uname -o) == GNU/Hurd ]]; then
+ export _HOST=i686-unknown-gnu
+ elif [[ $(uname -o) == GNU/Linux ]]; then
+ export _HOST=i686-unknown-linux-gnu
+ elif [[ $(uname -o) == GNU/kFreeBSD ]]; then
+ export _HOST=i686-unknown-kfreebsd-gnu
+ fi
autoreconf -vfi # our automake is far too new for their build system :)
- ./configure --prefix=/usr --libdir=/usr/lib32 --enable-32-bit \
+ ./configure --prefix=/usr --libdir=/usr/lib32 --host=$_HOST \
--sysconfdir=/etc \
--enable-llvm-shared-libs \
--enable-opencl \