Difference between revisions of "Talk:Makepkg"

From ArchWiki
Jump to: navigation, search
(optimized package options: new section)
(optimized package options: re)
Line 4: Line 4:
  
 
[[User:Kewl|Kewl]] ([[User talk:Kewl|talk]]) 10:38, 1 January 2018 (UTC)
 
[[User:Kewl|Kewl]] ([[User talk:Kewl|talk]]) 10:38, 1 January 2018 (UTC)
 +
 +
:Makefiles can just extend the environment's CFLAGS by not doing any explicit assignment, but using operators like {{ic|1=?=}} or {{ic|1=+=}} instead. See also [https://www.gnu.org/software/make/manual/html_node/Environment.html]. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 12:11, 1 January 2018 (UTC)

Revision as of 12:11, 1 January 2018

optimized package options

Just to double check: the CFLAGS of /etc/makepkg.conf is overwritten by the CFLAGS that can be found in the Makefile provided with the source. This makes it ineffective as soon as a Makefile is provided, is it correct? Should it be mentioned in this case?

Kewl (talk) 10:38, 1 January 2018 (UTC)

Makefiles can just extend the environment's CFLAGS by not doing any explicit assignment, but using operators like ?= or += instead. See also [1]. -- Lahwaacz (talk) 12:11, 1 January 2018 (UTC)