[haiku-development] Re: Cross-compiling Haiku with jam under Freebsd: fails consistently on undefined references
- From: "Ed Robbins" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "edd.robbins" for DMARC)
- To: haiku-development@xxxxxxxxxxxxx
- Date: Wed, 16 Aug 2017 07:47:37 +0100
On 16 August 2017 at 07:06, Thomas Mueller <mueller6723@xxxxxxx> wrote:
from Adrien Destugues:
It's better to have a BuildSetup that works in at least one
configuration, than one that never works.
I tried some changes but see I need more because of a c++config.h file not
found.
Include and library paths are complicated, too much to include in a
general-purpose BuildSetup because the paths vary by specific FreeBSD port.
HOST_HDRS += /usr/local/include ;
HOST_LINKFLAGS += -L/usr/local/lib ;
but I need more complex paths.
Add this at the end of the generated Jamfile?
Or maybe UserBuildConfig?
I just made another attempt and failed quickly on not being able to find
c++config.h .
I would need two or more HOST_HDRS and two or more HOST_LINKFLAGS.
I don't know jam, but if HOST_HDRS and HOST_LINKFLAGS work anything like
CFLAGS/CXXFLAGS and LDFLAGS then you can simply list multiple directories
to each one and they will be searched in order. e.g.
HOST_LINKFLAGS += -L/first/path \
-L/second/path ;
or maybe
HOST_LINKFLAGS += "-L/first/path -L/second/path" ;
It would seem a bit odd to me if this wasn't supported behaviour in jam,
but I don't know if the jam syntax above is correct.
Sorry if I've misunderstood your problem.
Best,
Ed
Other related posts: