diff options
Diffstat (limited to 'community/dumb')
-rw-r--r-- | community/dumb/PKGBUILD | 5 |
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=... |