summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD7
1 files changed, 2 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 02977707509c..c76578a057b8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -31,11 +31,8 @@ prepare() {
build() {
cd $pkgname-$pkgver
- # Ancient autoconf used upstream can't handle CPPFLAGS correctly
- export CFLAGS="$CPPFLAGS $CFLAGS"
- export CXXFLAGS="$CPPFLAGS $CXXFLAGS"
- unset CPPFLAGS
-
+ # Ancient autoconf used upstream can't handle CPPFLAGS correctly, so set CPP to ignore warnings
+ CPP="gcc -E -w" \
./configure \
--prefix=/opt/$pkgname \
--with-freetype-includes=/usr/include/freetype2 \