mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +00:00
Parse --disable-python in mkpkg and don't override -m32 for Solaris.
We want to be able to build without python and to specify the memory model when building 32-bit .so's for Solaris.
This commit is contained in:
parent
0a181849a1
commit
8e22ede2a6
@ -484,8 +484,15 @@ case "$osversion" in
|
||||
|
||||
if [ $osrelease -ge 11 ]; then
|
||||
# Build 64-bit binaries on Solaris 11 and above.
|
||||
CFLAGS="${CFLAGS:--O2 -g} -m64"; export CFLAGS
|
||||
LDFLAGS="-m64${LDFLAGS:+ }${LDFLAGS}"; export LDFLAGS
|
||||
case "${CC}${CFLAGS}" in
|
||||
*-m32*|*-m64*)
|
||||
# User specified memory model flags
|
||||
;;
|
||||
*)
|
||||
CFLAGS="${CFLAGS:--O2 -g} -m64"; export CFLAGS
|
||||
LDFLAGS="-m64${LDFLAGS:+ }${LDFLAGS}"; export LDFLAGS
|
||||
;;
|
||||
esac
|
||||
# Solaris audit is not supported by Illumos
|
||||
if [ X"`uname -o 2>/dev/null`" = X"illumos" ]; then
|
||||
configure_opts="${configure_opts}${configure_opts+$tab}--with-bsm-audit"
|
||||
@ -541,10 +548,13 @@ case "$osversion" in
|
||||
;;
|
||||
esac
|
||||
|
||||
# Don't enable OpenSSL if user disabled it.
|
||||
# Don't enable OpenSSL or python if disabled by the user.
|
||||
case "$configure_opts" in
|
||||
*--disable-openssl*) with_openssl=false;;
|
||||
esac
|
||||
case "$configure_opts" in
|
||||
*--disable-python*) with_python=false;;
|
||||
esac
|
||||
if [ X"$with_openssl" = X"true" ]; then
|
||||
configure_opts="${configure_opts}${configure_opts+$tab}--enable-openssl"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user