]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
FreeBSD: locate packages under /usr/local
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 5 Dec 2010 12:54:17 +0000 (05:54 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 5 Dec 2010 12:54:17 +0000 (05:54 -0700)
configure.ac

index 7b8f10bdd567aa9fc621945b2664a51b77218ce0..5323e3d227b90a52f19bee6677ef81c3bc72d1b2 100644 (file)
@@ -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"
     ;;