summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/freebsd-configure.sh
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssh/freebsd-configure.sh')
-rwxr-xr-xcrypto/openssh/freebsd-configure.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/openssh/freebsd-configure.sh b/crypto/openssh/freebsd-configure.sh
index 8004880..8af3927 100755
--- a/crypto/openssh/freebsd-configure.sh
+++ b/crypto/openssh/freebsd-configure.sh
@@ -15,6 +15,10 @@ configure_args="
set -e
+# make sure configure uses the correct compiler
+export CC=$(echo ".include <bsd.lib.mk>" | make -f /dev/stdin -VCC)
+export CPP=$(echo ".include <bsd.lib.mk>" | make -f /dev/stdin -VCPP)
+
# generate config.h with krb5 and stash it
sh configure $configure_args --with-kerberos5
mv config.log config.log.orig
OpenPOWER on IntegriCloud