Index: build ================================================================== --- build +++ build @@ -1,7 +1,8 @@ #! /usr/bin/env bash +# Set timezone to default TZ=UTC export TZ targetmode='install' if [ "$1" == '--cpio' ]; then @@ -49,10 +50,14 @@ function configure() { glibcvers=2.20 glibcdir="/opt/appfs/core.appfs.rkeene.org/glibc/platform/${glibcvers}" dynlinker="$(ls "${glibcdir}"/lib/ld-linux*.so.* | tail -n 1)" + + if [ ! -d "${glibcdir}" ]; then + die 'glibc directory is not available (appfs running/working?)' + fi CFLAGS="-I${glibcdir}/include" CPPFLAGS="-I${glibcdir}/include" LDFLAGS="-Wl,--rpath,${glibcdir}/lib -Wl,--dynamic-linker,${dynlinker}" export CFLAGS CPPFLAGS LDFLAGS