tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Packages not honouring CFLAGS

* On 2015-08-06 at 18:45 BST, Pierre Pronchery wrote:

> while testing both SSP and full ASLR support (building PIE executables)
> I realized that a number of packages do not apply CFLAGS as desired via
> pkgsrc. As a result, either SSP is not used when configured, or the
> package does not build at all (objects not suitable for PIE).

Yes, there are lots, and even more don't apply LDFLAGS.  We had to
work around this to ensure that all our packages are linked against
libumem, so I wrote these patches for legacy wrappers and cwrappers:

What we might want to do similarly is route pkgsrc CFLAGS and LDFLAGS
directly into _WRAP_EXTRA_ARGS/CWRAPPERS_APPEND to ensure they are
always passed through, as I fear patching all packages to honour
CFLAGS and LDFLAGS is going to be a huge effort and will need constant

Jonathan Perkin  -  Joyent, Inc.  -

Home | Main Index | Thread Index | Old Index