Diff

Differences From Artifact [84b7ccd5bb]:

To Artifact [d401f36a65]:


     1      1   #! /usr/bin/env bash
     2      2   
            3  +# Set timezone to default
     3      4   TZ=UTC
     4      5   export TZ
     5      6   
     6      7   targetmode='install'
     7      8   if [ "$1" == '--cpio' ]; then
     8      9   	targetmode='archive'
     9     10   
................................................................................
    47     48   	:
    48     49   }
    49     50   
    50     51   function configure() {
    51     52   	glibcvers=2.20
    52     53   	glibcdir="/opt/appfs/core.appfs.rkeene.org/glibc/platform/${glibcvers}"
    53     54   	dynlinker="$(ls "${glibcdir}"/lib/ld-linux*.so.* | tail -n 1)"
           55  +
           56  +	if [ ! -d "${glibcdir}" ]; then
           57  +		die 'glibc directory is not available (appfs running/working?)'
           58  +	fi
    54     59   
    55     60   	CFLAGS="-I${glibcdir}/include"
    56     61   	CPPFLAGS="-I${glibcdir}/include"
    57     62   	LDFLAGS="-Wl,--rpath,${glibcdir}/lib -Wl,--dynamic-linker,${dynlinker}"
    58     63   	export CFLAGS CPPFLAGS LDFLAGS
    59     64   
    60     65   	./configure --prefix="${prefix}" --sysconfdir=/etc --localstatedir=/var