mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
Build 64-bit binaries and the python package on Solaris 11 and above.
No longer prefer the Solaris Studio C compiler over gcc, it causes issues with the Python plugin.
This commit is contained in:
parent
8da1f31954
commit
6c881477b6
@ -138,20 +138,6 @@ if [ "$crossbuild" = "false" ]; then
|
|||||||
CC=/usr/bin/clang; export CC
|
CC=/usr/bin/clang; export CC
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
sol[0-9]*)
|
|
||||||
# Use the Sun Studio C compiler on Solaris if possible
|
|
||||||
if [ -z "$CC" ]; then
|
|
||||||
for f in /opt/developerstudio12.[9876]/bin/cc /opt/solarisstudio12.[43]/bin/cc; do
|
|
||||||
if [ -x $f ]; then
|
|
||||||
CC=$f; export CC
|
|
||||||
if [ -z "$CFLAGS" ]; then
|
|
||||||
CFLAGS=-O; export CFLAGS
|
|
||||||
fi
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -412,6 +398,10 @@ case "$osversion" in
|
|||||||
configure_opts="${configure_opts}${configure_opts+$tab}--with-project"
|
configure_opts="${configure_opts}${configure_opts+$tab}--with-project"
|
||||||
|
|
||||||
if [ $osrelease -ge 11 ]; then
|
if [ $osrelease -ge 11 ]; then
|
||||||
|
# Build 64-bit binaries on Solaris 11 and above.
|
||||||
|
CFLAGS="-O2 -g -m64"; export CFLAGS
|
||||||
|
LDFLAGS="-m64"; export LDFLAGS
|
||||||
|
# Solaris audit is not supported by Illumos
|
||||||
if test X"`uname -o 2>/dev/null`" = X"illumos"; then
|
if test X"`uname -o 2>/dev/null`" = X"illumos"; then
|
||||||
configure_opts="${configure_opts}${configure_opts+$tab}--with-bsm-audit"
|
configure_opts="${configure_opts}${configure_opts+$tab}--with-bsm-audit"
|
||||||
else
|
else
|
||||||
@ -419,6 +409,8 @@ case "$osversion" in
|
|||||||
fi
|
fi
|
||||||
# Encrypted remote I/O log support.
|
# Encrypted remote I/O log support.
|
||||||
with_openssl=true
|
with_openssl=true
|
||||||
|
# Python plugins
|
||||||
|
with_python=true
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user