lzip-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tarlz 0.18 build failure on FreeBSD 11.4


From: David Glover-Aoki
Subject: Re: tarlz 0.18 build failure on FreeBSD 11.4
Date: Mon, 23 Nov 2020 17:01:47 -0800

On Nov 23, 2020, at 3:07 PM, Antonio Diaz Diaz <antonio@gnu.org> 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

[Prev in Thread] Current Thread [Next in Thread]