Skip to contentSkip to conversation

libnspr: fix 64-bit build

PATCH New Arnout Vandecappelle (Essensium/Mind) 2 participants 2 messages Jul 10, 2012 – Jul 17, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libnspr: fix 64-bit build

On some architectures (found on x86_64, but probably others too), libnspr builds with -m32 unless it is configured for 64-bit build. So force 64-bit build on 64-bit architectures.

---
 package/libnspr/libnspr.mk |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
package/libnspr/libnspr.mk +3 -1
index 24b5370..cd7cf73 100644
@@ -12,6 +12,8 @@ LIBNSPR_INSTALL_STAGING = YES
 LIBNSPR_CONF_ENV = HOST_CFLAGS="-g -O2" \
 		   HOST_LDFLAGS="-lc"
 # NSPR mixes up --build and --host
-LIBNSPR_CONF_OPT = --host=$(GNU_HOST_NAME)
+LIBNSPR_CONF_OPT  = --host=$(GNU_HOST_NAME)
+LIBNSPR_CONF_OPT += --$(if $(BR2_ARCH_IS_64),en,dis)able-64bit
+LIBNSPR_CONF_OPT += --$(if $(BR2_INET_IPV6),en,dis)able-ipv6
 
 $(eval $(call AUTOTARGETS))
Signature · 1 line
tg: (8f6fc94..) t/libnspr-64 (depends on: master)
#1 lore raw

PATCH 1/1 libnspr: fix 64-bit build

Le Wed, 11 Jul 2012 00:25:45 +0200,
"Arnout Vandecappelle (Essensium/Mind)" <[email protected]> a ?crit :

Quoted 5 lines

On some architectures (found on x86_64, but probably others too), libnspr builds with -m32 unless it is configured for 64-bit build. So force 64-bit build on 64-bit architectures.

Applied, thanks.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com