[haiku-commits] Re: haiku: hrev46137 - in src: apps/haiku-depot kits/package bin/pkgman kits/package/manager servers/package

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 29 Sep 2013 19:38:23 -0400

On 9/29/13, Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:
> If you search for "HOST_HDRS" you'll find a few occurrences. I would add
> a special case for FreeBSD after that (same variable).

It's not just the headers though, I also need to adjust the linker
flags to look in /usr/local/lib. I assume for the latter, something
this would suffice?

diff --git a/build/jam/BuildSetup b/build/jam/BuildSetup
index 1abbfe4..8414fdc 100644
--- a/build/jam/BuildSetup
+++ b/build/jam/BuildSetup
@@ -266,6 +271,10 @@ if $(HOST_PLATFORM) = cygwin {
                --enable-auto-import ;
 }

+if $(HOST_PLATFORM) = freebsd {
+       HOST_LINKFLAGS += -L/usr/local/lib ;
+}
+
 HOST_CPU ?= $(OSPLAT:L) ;

 # Jam doesn't know x86_64, so override HOST_CPU, if 64 bit.

Other related posts: