[Buildroot] [PATCH v3] package/libnss: use correct CFLAGS and LDFLAGS
Peter Korsgaard
peter at korsgaard.com
Tue Aug 20 14:35:11 UTC 2019
>>>>> "Giulio" == Giulio Benetti <giulio.benetti at micronovasrl.com> writes:
> Actually libnss is configure with BUILD_OPT=1 that doesn't take into
> account TARGET_CFLAGS nor TARGET_LDFLAGS resulting in pre-chosen
> optimizations and debugging symbols.
> Can't pass TARGET_CFLAGS through CFLAGS or similar otherwise other
> internal libnss one will be overwritten(i.e. -fPIC), so prefer to append
> TARGET_CFLAGS at the end of Linux.mk as well as TARGET_LDFLAGS according
> to internal libnss Makefile system's names. And obviously remove
> BUILD_OPT=1 from BUILD_VARS. This reveals hidden bugs when building
> with -Os due to uninitialized variables so add patches to fix those
> bugs.
> Signed-off-by: Giulio Benetti <giulio.benetti at micronovasrl.com>
Committed to 2019.02.x and 2019.05.x, thanks (after the changes done by
Thomas to not patch).
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list