[SLOF] FLAG is not passed correctly to the compiler

Murilo Opsfelder Araújo muriloo at linux.vnet.ibm.com
Fri Jun 23 22:27:49 AEST 2017


On 06/23/2017 02:56 AM, Alexey Kardashevskiy wrote:
[...]
> afaict this fixes the original issue:
> 
> 
> diff --git a/lib/Makefile b/lib/Makefile
> index a4d4bb2..1e8bb62 100644
> --- a/lib/Makefile
> +++ b/lib/Makefile
> @@ -21,7 +21,7 @@ all:  subdirs
>  subdirs: $(SUBDIRS)
> 
>  $(SUBDIRS):
> -       $(MAKE) -C $@ $(MAKEARG)
> +       $(MAKE) -C $@ FLAG=$(FLAG) $(MAKEARG)
> 
>  # Rules for making clean:
>  clean:
> 
> 
> Murilo, please give it a try.
> 
> In general, lib/**/Makefile could use some cleanup - they all define
> ASFLAGS/CPPFLAGS/LDFLAGS, mostly identical, when it is not identical, it
> feels like just by oversight than anything else.

Alexey,

In addition to your diff, I also had to append FLAG to CFLAGS in
lib/libnet/Makefile. Then, it worked.

I sent out a v2 patch.

Thanks.

-- 
Murilo



More information about the SLOF mailing list