summaryrefslogtreecommitdiff
path: root/libre-multilib/lib32-mesa
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2017-03-29 20:08:53 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2017-03-29 20:08:53 -0300
commitb92b5440e73eeed7037dd0a25ae3860da139237e (patch)
tree0637149292b37e8b6382c64cab7a22841addb2b2 /libre-multilib/lib32-mesa
parent8a833847f4aa8a98b8b7140a9289775222f83d6c (diff)
downloadabslibre-b92b5440e73eeed7037dd0a25ae3860da139237e.tar.gz
abslibre-b92b5440e73eeed7037dd0a25ae3860da139237e.tar.bz2
abslibre-b92b5440e73eeed7037dd0a25ae3860da139237e.zip
lib32-mesa: fix 32bit build
Diffstat (limited to 'libre-multilib/lib32-mesa')
-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