From: mar77i Date: Thu, 25 Jun 2015 08:46:30 +0000 (+0200) Subject: use += in config.mk for make variables so system config is respected X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FAUR.git;a=commitdiff_plain;h=27aad93a2f5635d9ce9cebbf61b6947f90712151 use += in config.mk for make variables so system config is respected --- diff --git a/PKGBUILD b/PKGBUILD index fc9cf60..b68e76f 100644 --- 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 }