kiwix-build/kiwixbuild/templates/bash_wrapper.sh

31 lines
679 B
Bash

#!/bin/sh
if test -z "$PATH_ORIG" ; then
PATH_ORIG="$PATH"; export PATH_ORIG;
fi;
PATH="{root_path}/bin:$PATH_ORIG"; export PATH;
HOST_CC=gcc; export HOST_CC;
unset PKG_CONFIG_PATH;
ccache=`which ccache`
CC={which:{binaries[c]}}
CXX={which:{binaries[cpp]}}
if [ "x$ccache" != "x" ] ; then
CC="ccache $CC"
CXX="ccache $CXX"
fi
export CC
export CXX
AR={which:{binaries[ar]}}; export AR
STRIP={which:{binaries[strip]}}; export STRIP
CFLAGS=" -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4"; export CFLAGS;
CXXFLAGS=" -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4"; export CXXFLAGS;
exec "$@"