summaryrefslogtreecommitdiff
path: root/community/dumb
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-01-07 23:48:27 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2012-01-07 23:48:27 +0100
commita9dea3be54150dd7aacef235d86ad62b547c718c (patch)
treeb01a171ab71dbf5204c3bdc6914cffdd58622298 /community/dumb
parent74d2f6ecbd25e398d8e618b1ba3b8b1df8baefe5 (diff)
Rebuilds for lib32.
Diffstat (limited to 'community/dumb')
-rw-r--r--community/dumb/PKGBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/community/dumb/PKGBUILD b/community/dumb/PKGBUILD
index ccbbbb04b..368c1cc9e 100644
--- a/community/dumb/PKGBUILD
+++ b/community/dumb/PKGBUILD
@@ -15,7 +15,7 @@ md5sums=('f48da5b990aa8aa822d3b6a951baf5c2')
build() {
cd "$srcdir/$pkgname-$pkgver"
- [ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC"
+ [ "${CARCH}" != "i686" ] && export CFLAGS="${CFLAGS} -fPIC"
# Create the directories which the Makefile somehow fails to create
install -d lib/unix/{debug,release}
@@ -30,7 +30,8 @@ ALL_TARGETS := core core-examples core-headers
ALL_TARGETS += allegro allegro-examples allegro-headers
PREFIX := "$pkgdir/usr"
EOF
-
+ # For some reason -lm is not linked for Allegro examples.
+ sed -ri 's/^(LINK_ALLEGRO := .+)$/\1 -lm/' make/unix.inc
# Upstream's makefile ignores our CFLAGS. They put -I directives in
# their own CFLAGS, so we can't just say
# make CFLAGS=...