[Buildroot] [PATCH v2 4/7] package/libnss: re-enable package if BUG_85862 is present

Thomas Petazzoni thomas.petazzoni at bootlin.com
Fri May 24 21:15:47 UTC 2019


On Wed, 22 May 2019 15:59:03 +0200
Giulio Benetti <giulio.benetti at micronovasrl.com> wrote:

>  # --gc-sections triggers binutils ld segfault
>  # https://sourceware.org/bugzilla/show_bug.cgi?id=21180
>  ifeq ($(BR2_microblaze),y)
> @@ -33,7 +34,6 @@ LIBNSS_BUILD_VARS = \
>  	MOZILLA_CLIENT=1 \
>  	NSPR_INCLUDE_DIR=$(STAGING_DIR)/usr/include/nspr \
>  	NSPR_LIB_DIR=$(STAGING_DIR)/usr/lib \
> -	BUILD_OPT=1 \

In fact why are we building with BUILD_OPT=1 at all ? This adds some
semi-random optimization flags decided by libnss. I guess we should not
pass BUILD_OPT=1 at all, and simply pass CFLAGS=$(LIBNSS_CFLAGS), with
LIBNSS_CFLAGS = $(TARGET_CFLAGS), with -O0 added to work around the
Microblaze bug.

What do you think ?

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list