mirror of
https://github.com/pygos/build.git
synced 2024-11-05 03:27:10 +01:00
8e5c6d3a2e
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
24 lines
698 B
Bash
24 lines
698 B
Bash
run_configure() {
|
|
local srcdir="$1"
|
|
shift
|
|
|
|
local cflags=""
|
|
local ldflags=""
|
|
|
|
if [ "x$TC_HARDENING" = "xyes" ]; then
|
|
cflags="-fstack-protector-all"
|
|
ldflags="-z noexecstack -z relro -z now"
|
|
fi
|
|
|
|
ac_cv_func_malloc_0_nonnull=yes \
|
|
ac_cv_func_realloc_0_nonnull=yes \
|
|
CFLAGS="$cflags" LDFLAGS="$ldflags" \
|
|
$srcdir/configure --prefix="" --build="$HOSTTUPLE" --host="$TARGET" \
|
|
--bindir="/bin" --sbindir="/bin" --sysconfdir="/etc" \
|
|
--libexecdir="/lib/libexec" --datarootdir="/share" \
|
|
--datadir="/share" --sharedstatedir="/share" \
|
|
--with-bashcompletiondir="/share/bash-completion/completions" \
|
|
--includedir="/include" \
|
|
--libdir="/lib" \
|
|
--enable-shared --disable-static $@
|
|
}
|