Difference between revisions of "Talk:Makepkg"

From ArchWiki
Jump to: navigation, search
(-march=native VS -march=broadwell)
m (updpkgsums is gone: remove closed discussion)
 
(20 intermediate revisions by 7 users not shown)
Line 1: Line 1:
== -march=native VS -march=broadwell ==
+
== optimized package options ==
  
currently, I'm working on fix this problem [https://bbs.archlinux.org/viewtopic.php?pid=1616131].
+
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?
  
how I have written in that topic, -march models could not be updated to your true CPU architecture
+
[[User:Kewl|Kewl]] ([[User talk:Kewl|talk]]) 10:38, 1 January 2018 (UTC)
i.e. there are many versions of core2 CPU and -march=core2 would be conservative.
 
In this direction I'm going to add a warning box in this page.
 
Let me know if it's a good idea!
 
  
{{unsigned|10:10, 31 March 2016‎|NTia89}}
+
: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)
  
:What would be the warning about? The wiki recommends {{ic|1=-march=native}}, which enables more tweaks than (in your case) {{ic|1=-march=broadwell}}, as expected. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 13:15, 31 March 2016 (UTC)
+
::Thanks that clarifies, do you think the wiki is clear enough or is it worth adding a comment about it or a link? [[User:Kewl|Kewl]] ([[User talk:Kewl|talk]]) 15:28, 1 January 2018 (UTC)
  
::Sorry, where? --[[User:NTia89|nTia89]] ([[User talk:NTia89|talk]]) 13:21, 31 March 2016 (UTC)
+
:::Well, the general note in the section is good enough for me, but feel free to add a comment... -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 16:42, 1 January 2018 (UTC)
 +
 
 +
== upx ==
 +
 
 +
A feature to be aware of: do not be surprised if the UPX option does not compress your gcc binary because it only detects files that are of mime type 'application/x-executable' | 'application/x-dosexec' while gcc unless instructed otherwise would create by default a binary 'application/x-sharedlib'.
 +
This is visible in {{ic|/usr/share/makepkg/tidy/upx.sh}} [[User:Kewl|Kewl]] ([[User talk:Kewl|talk]]) 15:33, 1 January 2018 (UTC)

Latest revision as of 15:58, 17 March 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)
Thanks that clarifies, do you think the wiki is clear enough or is it worth adding a comment about it or a link? Kewl (talk) 15:28, 1 January 2018 (UTC)
Well, the general note in the section is good enough for me, but feel free to add a comment... -- Lahwaacz (talk) 16:42, 1 January 2018 (UTC)

upx

A feature to be aware of: do not be surprised if the UPX option does not compress your gcc binary because it only detects files that are of mime type 'application/x-executable' | 'application/x-dosexec' while gcc unless instructed otherwise would create by default a binary 'application/x-sharedlib'. This is visible in /usr/share/makepkg/tidy/upx.sh Kewl (talk) 15:33, 1 January 2018 (UTC)