2022-09-03 04:01:37 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
|
|
|
|
# ./nspr/pr/include/md/_linux.h tests only __GLIBC__ version
|
|
|
|
# to detect c-library features, list musl features here for now.
|
2023-07-26 18:08:46 -06:00
|
|
|
CFLAGS="$CFLAGS -D_PR_POLL_AVAILABLE -D_PR_HAVE_LARGE_OFF_T -D_PR_INET6 \
|
2022-09-03 04:01:37 -06:00
|
|
|
-D_PR_HAVE_INET_NTOP -D_PR_HAVE_GETHOSTBYNAME2 -D_PR_HAVE_GETADDRINFO \
|
|
|
|
-D_PR_INET6_PROBE" \
|
|
|
|
../nspr/configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--disable-debug \
|
|
|
|
--enable-optimize \
|
|
|
|
--enable-64bit
|
|
|
|
|
|
|
|
make
|
2023-03-02 07:40:00 -07:00
|
|
|
make DESTDIR="$1" install
|
2022-09-03 04:01:37 -06:00
|
|
|
|
|
|
|
# $1 is never unset
|
|
|
|
# shellcheck disable=2115
|
|
|
|
rm -rf \
|
|
|
|
"$1/usr/lib/"*.a \
|
|
|
|
"$1/usr/bin/prerr.properties" \
|
|
|
|
"$1/usr/bin/compile-et.pl" \
|
|
|
|
"$1/usr/share" \
|
|
|
|
"$1/usr/include/nspr/md"
|