Re: getconf options

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

 



On Fri, 2017-10-20 at 07:47 +0200, Uwe Kleine-König wrote:
> Hello,
> 
> On Fri, Oct 20, 2017 at 04:14:44AM +0000, yamada.masahiro@xxxxxxxxxxxxx wrote:
> > > With commit d7f14c66c273b00aaa626f419d3155773a88d460, I got the follow
> > > warning on macos.
> > > 
> > > getconf: no such configuration parameter `LFS_CFLAGS'
> > > getconf: no such configuration parameter `LFS_LDFLAGS'
> > > getconf: no such configuration parameter `LFS_LIBS'
> > > scripts/kconfig/mconf  Kconfig
> > > 
> > > $ getconf LFS_CFLAGS
> > > getconf: no such configuration parameter `LFS_CFLAGS'
> > > 
> > > 
> > > Do you have some idea about this? Are these paremeters default to getconf?
> > > 
> > > -Feng
> > > 
> > 
> > 
> > Do you have a clue?
> > 
> > 
> > Does it make sense to suppress warnings like this?
> > 
> > HOST_LFS_CFLAGS := $(shell getconf LFS_CFLAGS 2>/dev/null)
> > HOST_LFS_LDFLAGS := $(shell getconf LFS_LDFLAGS 2>/dev/null)
> > HOST_LFS_LIBS := $(shell getconf LFS_LIBS 2>/dev/null)
> > 
> > 
> > Or, hard-code
> > -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
> > as Ben originally suggested?
> 
> I'm not a fan of hardcoding these. On 64 bit arch (and I think also a
> few 32 bit archs (x32?)) they are not needed and so IMHO shouldn't be
> added.

What harm would they do?

Ben.

> I think 2>/dev/null is fine.
> 
> Having said that, I wonder if/how LFS works on MacOS.

-- 
Ben Hutchings
Make three consecutive correct guesses and you will be considered an
expert.

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux