Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/contrib/ldns/freebsd-configure.sh
39478 views
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
6
set -e
7
8
error() {
9
echo "$@" >&2
10
exit 1
11
}
12
13
ldns=$(dirname $(realpath $0))
14
cd $ldns
15
16
# Run autotools before we drop LOCALBASE out of PATH
17
libtoolize --copy && autoheader && autoconf
18
19
# Ensure we use the correct toolchain and clean our environment
20
export CC=$(echo ".include <bsd.lib.mk>" | make -f /dev/stdin -VCC)
21
export CPP=$(echo ".include <bsd.lib.mk>" | make -f /dev/stdin -VCPP)
22
unset CFLAGS CPPFLAGS LDFLAGS LD_LIBRARY_PATH LIBS
23
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
24
25
./configure --prefix= --exec-prefix=/usr --with-drill --with-ssl
26
27