mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
![Dag-Erling Smørgrav](/assets/img/avatar_default.png)
Merge commit 'cf3e3d5bd0a1fae39c74c7db5a4e8b10732d0766' Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D40226
26 lines
571 B
Bash
Executable file
26 lines
571 B
Bash
Executable file
#!/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
|