summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRebecca Cran <rebecca@bluestop.org>2019-05-06 16:12:41 -0600
committerJens Axboe <axboe@kernel.dk>2019-05-06 22:18:55 -0600
commitf22dd97a5a1342c7dcb84f777a77bd30859cc35b (patch)
treee78d951987001ca48f0ef44c3d9683c9971b8e93 /configure
parent59097e775dce8ccf3127963972ca61c6ce2a3141 (diff)
downloadfio-f22dd97a5a1342c7dcb84f777a77bd30859cc35b.tar.gz
fio-f22dd97a5a1342c7dcb84f777a77bd30859cc35b.tar.bz2
Update CFLAGS and LDFLAGS for FreeBSD builds
FreeBSD installs third-party headers into /usr/local/include and libraries into /usr/local/lib. Update CFLAGS and LDFLAGS to look there. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index c7a7c0ae..d71387c0 100755
--- a/configure
+++ b/configure
@@ -307,6 +307,10 @@ AIX|OpenBSD|NetBSD)
force_no_lex_o="yes"
fi
;;
+FreeBSD)
+ CFLAGS="$CFLAGS -I/usr/local/include"
+ LDFLAGS="$LDFLAGS -L/usr/local/lib"
+ ;;
Darwin)
# on Leopard most of the system is 32-bit, so we have to ask the kernel if
# we can run 64-bit userspace code.