From b0173519b4d4fcec01ae0372948e5c457a8c5b25 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sun, 5 Dec 2010 05:54:17 -0700 Subject: [PATCH] FreeBSD: locate packages under /usr/local --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 7b8f10bdd5..5323e3d227 100644 --- a/configure.ac +++ b/configure.ac @@ -284,6 +284,12 @@ dnl TODO: check if the problem will be present in any other newer MinGW release. mingw|mingw32) SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wcomments" ;; + freebsd*) + # FreeBSD places local libraries and packages in /usr/local + CFLAGS="$CFLAGS -I/usr/local/include" + CXXFLAGS="$CXXFLAGS -I/usr/local/include" + LDFLAGS="$LDFLAGS -L/usr/local/lib -Wl,-R/usr/local/lib" + ;; *) SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments" ;; -- 2.47.2