On Nov 23, 2020, at 3:07 PM, Antonio Diaz Diaz <[email protected]> wrote:
> 
> Looks like BSD make is ignoring CPPFLAGS. Please, verify that lines 51-52 of 
> the Makefile are these:
> 
> %.o : %.cc
>        $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<

They are exactly that.

> ./configure CXXFLAGS='-O2 -I /usr/local/include' LDFLAGS='-L /usr/local/lib’
> make

And that does fix the problem!

I think the problem is described by this page here:
http://alfix.gitlab.io/bsd/gnu/coding/2017/01/28/gnu-make-vs-bsd-make.html

Amongst other differences with FreeBSD make, it uses a different bracket type, 
like ${THIS}, and not like $(THIS).

I also found this guide to making cross-compatible Makefiles but I don’t know 
how useful it is: https://mmap.page/dive-into/make/

David.


Reply via email to