]> git.immae.eu Git - perso/Immae/Config/AUR.git/commitdiff
use += in config.mk for make variables so system config is respected
authormar77i <mysatyre@gmail.com>
Thu, 25 Jun 2015 08:46:30 +0000 (10:46 +0200)
committermar77i <mysatyre@gmail.com>
Thu, 25 Jun 2015 08:46:30 +0000 (10:46 +0200)
PKGBUILD

index fc9cf60da50d63ab59970c9109c84c39ec412398..b68e76f13b117ae84559cc2412ffefc2d5a6acd3 100644 (file)
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -32,6 +32,12 @@ prepare() {
                -e '/char worddelimiters/s/= .*/= " '"'"'`\\\"()[]{}<>|";/' \
                -e '/int defaultcs/s/= .*/= 1;/' \
                -i config.def.h
+       sed \
+               -e 's/CPPFLAGS =/CPPFLAGS +=/g' \
+               -e 's/CFLAGS =/CFLAGS +=/g' \
+               -e 's/LDFLAGS =/LDFLAGS +=/g' \
+               -e 's/_BSD_SOURCE/_DEFAULT_SOURCE/' \
+               -i config.mk
        sed '/@tic/d' -i Makefile
 }