[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Detecting binary package build
On Fri, 22 Sep 2017 15:01:13 -0500
Jason Bacon <bacon4000%gmail.com@localhost> wrote:
> Is there a canonical way to detect a binary package build within the
> package Makefile, whether the build was invoked by pbulk or just "make
> I just added wip/openblas and I want to use different build options for
> a binary package and a local source build.
> I.e. if building a binary package for distribution on x86, I would
> enable DYNAMIC_ARCH, which generates CPU-agnostic code. When doing a
> local source build, I would turn this off so the upstream build system
> can optimize for the local CPU.
The canonical example is multimedia/mplayer. Add a
"runtime-cpudetection" PKG_OPTION and enable it by default. Then users
can disable it in mk.conf if they so desire.
Main Index |
Thread Index |