build flags handling
Hi everyone, I recently came across a package [1] which ideally would like to handle its own build flags (adding `-O3 -ffast-math` for speed, for example). What is the Debian policy on this? Cheers, Nico [1] https://packages.debian.org/sid/sound/mixxx -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/cak6z60db3qlxs-y1u8z672ur5k12ckxyyxx495gkwu_sp-+...@mail.gmail.com
Re: build flags handling
Hello Nico, On Tue, 2015-02-03 at 00:56 +0200, Nico Schlömer wrote: I recently came across a package [1] which ideally would like to handle its own build flags (adding `-O3 -ffast-math` for speed, for example). What is the Debian policy on this? It is up to the maintainer to set the optimization flags [1]. Note, that it is considered bad practice to set compile flags that limit what hardware is actually supported, e.g. on i386 you should avoid globally enabling SSE, since this would make the package unusable on older systems that don't support SSE. Unless, of course, upstream already imposes such a limitation (e.g. tbb requires at least a Pentium 4 on i386). For some more notes see, e.g. #776812 [2]. Hope that help. Gert [1] https://www.debian.org/doc/debian-policy/ch-files.html [2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776812 -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/1422920082.5642.17.ca...@gmail.com
Re: build flags handling
On Tue, 3 Feb 2015 00:56:40 +0200, Nico Schlömernico.schloe...@gmail.com wrote: Hi everyone, I recently came across a package [1] which ideally would like to handle its own build flags (adding `-O3 -ffast-math` for speed, for example). What is the Debian policy on this? Debian Policy wrote: It is up to the package maintainer to decide what compilation options are best for the package. Certain binaries (such as computationally-intensive programs) will function better with certain flags (-O3, for example); feel free to use them. Please use good judgment here. See Debian Policy 10.1: https://www.debian.org/doc/debian-policy/ch-files.html -- Andreas Rönnquist mailingli...@gusnan.se gus...@gusnan.se -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20150203001629.29383...@debian-workstation.lan