summaryrefslogtreecommitdiff
path: root/libre-multilib/lib32-mesa/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre-multilib/lib32-mesa/PKGBUILD')
-rw-r--r--libre-multilib/lib32-mesa/PKGBUILD14
1 files changed, 12 insertions, 2 deletions
diff --git a/libre-multilib/lib32-mesa/PKGBUILD b/libre-multilib/lib32-mesa/PKGBUILD
index 4196bcc29..4672dae6e 100644
--- a/libre-multilib/lib32-mesa/PKGBUILD
+++ b/libre-multilib/lib32-mesa/PKGBUILD
@@ -53,6 +53,14 @@ build() {
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
./configure --prefix=/usr \
--sysconfdir=/etc \
@@ -85,7 +93,8 @@ build() {
--enable-lmsensors \
--with-clang-libdir=/usr/lib32 \
--libdir=/usr/lib32 \
- --libexecdir=/usr/lib32
+ --libexecdir=/usr/lib32 \
+ --host=$_HOST
make
@@ -129,7 +138,8 @@ build() {
--enable-lmsensors \
--with-clang-libdir=/usr/lib32 \
--libdir=/usr/lib32 \
- --libexecdir=/usr/lib32
+ --libexecdir=/usr/lib32 \
+ --host=$_HOST
make