[Buildroot] [PATCH v2 4/7] package/libnss: re-enable package if BUG_85862 is present
Giulio Benetti
giulio.benetti at micronovasrl.com
Mon May 27 10:10:14 UTC 2019
Hello Thomas,
Il 24/05/2019 23:15, Thomas Petazzoni ha scritto:
> 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 ?
I totally agree. I've taken a closer look to what I've done on this
patch, LIBNSS_CFLAGS are not setup and CFLAGS=".." passed to $(MAKE1)
are actually ignored by libnss. Need to find a way to pass our
$(TARGET_CFLAGS).
--
Giulio Benetti
CTO
MICRONOVA SRL
Sede: Via A. Niedda 3 - 35010 Vigonza (PD)
Tel. 049/8931563 - Fax 049/8931346
Cod.Fiscale - P.IVA 02663420285
Capitale Sociale € 26.000 i.v.
Iscritta al Reg. Imprese di Padova N. 02663420285
Numero R.E.A. 258642
More information about the buildroot
mailing list