Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1142  / 3 Years ago, sun, may 2, 2021, 9:36:28

I installed apt-build on Ubuntu, it is a program that compiles and installs programs. It compiles optimally for the user processor and this makes programs run quickly.



But I thought what if I change my processor in the future, programs compiled for the old processor will present problems? If yes, then I have to compile again?



Please someone who use apt-build help me.


More From » apt

 Answers
7

On installing apt-build, you set the parameters for optimization. You can check what this are currently by running:



cat /etc/apt/apt-build.conf


Which in my case gives:



build-dir = /var/cache/apt-build/build
repository-dir = /var/cache/apt-build/repository
Olevel = -O2
mtune = -mtune=i586
options = " "
make_options = " -j4"


So you can see mine is optimized of i586 architecture, as this computer has a Intel i5 processor (I think i586 is right for this type - seems to work).



It also depends on what you set here:
<code>apt-build</code> setup



So if your apt-build settings are set to Strong, they are less likely to work.



If you want to change the settings you set, you can do that simply by running:



sudo dpkg-reconfigure apt-build


So as long as your processor is better than the old one, it might be fine...


[#26813] Monday, May 3, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
losbu

Total Points: 71
Total Questions: 124
Total Answers: 106

Location: Honduras
Member since Sat, Jul 24, 2021
3 Years ago
;