2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 01:49:11 +00:00

Append to CFLAGS and LDFLAGS instead of overriding them when adding -m64.

This commit is contained in:
Todd C. Miller 2021-02-07 15:38:11 -07:00
parent a72d743ec8
commit db4ee0a903

View File

@ -410,8 +410,8 @@ case "$osversion" in
if [ $osrelease -ge 11 ]; then
# Build 64-bit binaries on Solaris 11 and above.
CFLAGS="-O2 -g -m64"; export CFLAGS
LDFLAGS="-m64"; export LDFLAGS
CFLAGS="${CFLAGS:--O2 -g} -m64"; export CFLAGS
LDFLAGS="-m64${LDFLAGS:+ }${LDFLAGS}"; export LDFLAGS
# Solaris audit is not supported by Illumos
if test X"`uname -o 2>/dev/null`" = X"illumos"; then
configure_opts="${configure_opts}${configure_opts+$tab}--with-bsm-audit"