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.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/crypto/openssh/freebsd-configure.sh b/crypto/openssh/freebsd-configure.sh
index 8004880..0f37eb9 100755
--- a/crypto/openssh/freebsd-configure.sh
+++ b/crypto/openssh/freebsd-configure.sh
@@ -7,6 +7,7 @@ configure_args="
--prefix=/usr
--sysconfdir=/etc/ssh
--with-pam
+ --with-ssl-dir=/usr
--with-tcp-wrappers
--with-libedit
--with-ssl-engine
@@ -15,6 +16,19 @@ 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)
+unset CFLAGS CPPFLAGS LDFLAGS LIBS
+
+# regenerate configure and config.h.in
+autoheader
+autoconf
+
+# reset PATH to avoid picking up the wrong libraries
+export PATH=/bin:/sbin:/usr/bin:/usr/sbin
+unset LD_LIBRARY_PATH
+
# generate config.h with krb5 and stash it
sh configure $configure_args --with-kerberos5
mv config.log config.log.orig
OpenPOWER on IntegriCloud