Permalink
Browse files

added build-nss script to permit manual builds with libnsa

  • Loading branch information...
mcr committed Mar 20, 2017
1 parent bd0fa1a commit 6ce1c422feb2d2ad5e17a8b966473bf9f213cc6f
Showing with 22 additions and 1 deletion.
  1. +21 −0 build-nss
  2. +1 −1 tests/build/b02-libnss/Makefile
View
@@ -0,0 +1,21 @@
#!/bin/sh
# this explicitely builds with LIBNSS into a different OBJDIR.
# it used by tests/build/b02-libnss/, but also by developers to
# validate libnss builds.
if [ -z "${DESTDIR}" ]; then
DESTDIR=`pwd`/OBJ.libnss.${BUILDENV}.${ARCH}/root
mkdir -p $DESTDIR
fi
if [ -z "${BUILDENV}" ]; then
BUILDENV=$(uname -s | tr 'A-Z' 'a-z' | sed -e 's/\(.*\)-.*/\1/')
fi
if [ -z "${ARCH}" ]; then
ARCH=$(uname -m)
fi
${MAKE-make} --no-print-directory USE_LIBNSS=true DESTDIR=${DESTDIR} OBJDIR=OBJ.libnss.${BUILDENV}.${ARCH} USE_LIBNSS=true programs install
@@ -23,7 +23,7 @@ check:
@rm -rf ${OPENSWANSRCDIR}/OBJ.libnss.${BUILDENV}.${ARCH}
@rm -rf ${OPENSWANSRCDIR}/OBJ.nolibnss.${BUILDENV}.${ARCH}
@mkdir -p ${buildtmp}
${MAKE} --no-print-directory -C ${OPENSWANSRCDIR} DESTDIR=${buildtmp} OBJDIR=OBJ.libnss.${BUILDENV}.${ARCH} USE_LIBNSS=true programs install
(cd ${OPENSWANSRCDIR} && DESTDIR=${buildtmp} ./build-nss )
${MAKE} --no-print-directory -C ${OPENSWANSRCDIR} DESTDIR=${buildtmp} OBJDIR=OBJ.nolibnss.${BUILDENV}.${ARCH} USE_LIBNSS=false programs install

0 comments on commit 6ce1c42

Please sign in to comment.