blob: d1a3a73591e367d41ff3b10935215bcd16b0087f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh
#
# $FreeBSD$
#
set -e
error() {
echo "$@" >&2
exit 1
}
ldns=$(dirname $(realpath $0))
cd $ldns
# Run autotools before we drop LOCALBASE out of PATH
libtoolize --copy && autoheader && autoconf
# Ensure we use the correct toolchain and clean our environment
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 LD_LIBRARY_PATH LIBS
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
./configure --prefix= --exec-prefix=/usr --with-drill --with-ssl
|