diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2016-01-06 11:18:54 -0300 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-01-22 10:10:34 +0100 |
commit | b8fb4903fb858bc81eab6ac5bd37c801853594cb (patch) | |
tree | f2a8736da3577ed8cea7b0722acfac133a235f6b | |
parent | febab8d9de742bdf190939ac723c140f5a5546ca (diff) | |
download | buildroot-b8fb4903fb858bc81eab6ac5bd37c801853594cb.tar.gz buildroot-b8fb4903fb858bc81eab6ac5bd37c801853594cb.zip |
libnss: add build workaround for older gcc versions
nss uses some #pragma directives that require newish (>= 4.6) versions
of gcc, so disable Werror when building with older versions to avoid the
build from breaking unfairly.
However make this a gcc >= 4.8 conditional since the kludge is called so
(NSS_NO_GCC48) and other bits might depend upon it.
Upstream bug https://bugzilla.mozilla.org/show_bug.cgi?id=1226179
Fixes:
http://autobuild.buildroot.net/results/ebd/ebd0647eb1eef41a7fb6e5f5bab18d4d12168661/
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/libnss/libnss.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/package/libnss/libnss.mk b/package/libnss/libnss.mk index 10879e219d..6fdb77cd14 100644 --- a/package/libnss/libnss.mk +++ b/package/libnss/libnss.mk @@ -30,6 +30,12 @@ LIBNSS_BUILD_VARS = \ OS_RELEASE="2.6" \ OS_TEST="$(ARCH)" +# #pragma usage needs gcc >= 4.8 +# See https://bugzilla.mozilla.org/show_bug.cgi?id=1226179 +ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_4_8),) +LIBNSS_BUILD_VARS += NSS_ENABLE_WERROR=0 +endif + ifeq ($(BR2_ARCH_IS_64),y) # MIPS64 n32 is treated as a 32-bit architecture by libnss. # See: https://bugzilla.mozilla.org/show_bug.cgi?id=1010730 |