1 ################################################################################
5 ################################################################################
7 LIBNSPR_VERSION
= 4.13.1
8 LIBNSPR_SOURCE
= nspr-
$(LIBNSPR_VERSION
).
tar.gz
9 LIBNSPR_SITE
= https
://ftp.mozilla.org
/pub
/mozilla.org
/nspr
/releases
/v
$(LIBNSPR_VERSION
)/src
11 LIBNSPR_INSTALL_STAGING
= YES
12 LIBNSPR_CONFIG_SCRIPTS
= nspr-config
13 LIBNSPR_LICENSE
= MPLv2.0
14 LIBNSPR_LICENSE_FILES
= nspr
/LICENSE
16 # Set the host CFLAGS and LDFLAGS so NSPR does not guess wrongly
18 HOST_CFLAGS
="-g -O2" \
20 # NSPR mixes up --build and --host
21 LIBNSPR_CONF_OPTS
= --host
=$(GNU_HOST_NAME
)
22 LIBNSPR_CONF_OPTS
+= --$(if
$(BR2_ARCH_IS_64
),en
,dis
)able-64bit
24 # ./nspr/pr/include/md/_linux.h tests only __GLIBC__ version to detect
25 # c-library features, list musl features here for now (taken from
27 ifeq ($(BR2_TOOLCHAIN_USES_MUSL
),y
)
29 -D_PR_POLL_AVAILABLE \
32 -D_PR_HAVE_INET_NTOP \
33 -D_PR_HAVE_GETHOSTBYNAME2 \
34 -D_PR_HAVE_GETADDRINFO \
38 LIBNSPR_CONF_ENV
+= CFLAGS
="$(TARGET_CFLAGS) $(LIBNSPR_CFLAGS)"
40 ifeq ($(BR2_STATIC_LIBS
),y
)
41 LIBNSPR_MAKE_OPTS
= SHARED_LIBRARY
=
42 LIBNSPR_INSTALL_TARGET_OPTS
= DESTDIR
=$(TARGET_DIR
) SHARED_LIBRARY
= install
43 LIBNSPR_INSTALL_STAGING_OPTS
= DESTDIR
=$(STAGING_DIR
) SHARED_LIBRARY
= install
46 ifeq ($(BR2_SHARED_LIBS
),y
)
47 LIBNSPR_MAKE_OPTS
= LIBRARY
=
48 LIBNSPR_INSTALL_TARGET_OPTS
= DESTDIR
=$(TARGET_DIR
) LIBRARY
= install
49 LIBNSPR_INSTALL_STAGING_OPTS
= DESTDIR
=$(STAGING_DIR
) LIBRARY
= install
52 $(eval
$(autotools-package
))