diff options
Diffstat (limited to 'libre-multilib/lib32-mesa-libcl/PKGBUILD')
-rw-r--r-- | libre-multilib/lib32-mesa-libcl/PKGBUILD | 17 |
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 \ |