[Buildroot] [PATCH] lsof: fix "'TCP_*' undeclared" build errors

Benoît Thébaudeau benoit.thebaudeau at advansee.com
Fri May 2 16:27:25 UTC 2014


On Friday, May 2, 2014 5:29:44 PM, Benoît Thébaudeau wrote:
> On Friday, May 2, 2014 4:59:24 PM, Benoît Thébaudeau wrote:
> > diff --git a/package/lsof/lsof.mk b/package/lsof/lsof.mk
> > index aa101e4..66d2133 100644
> > --- a/package/lsof/lsof.mk
> > +++ b/package/lsof/lsof.mk
> > @@ -47,7 +47,8 @@ endef
> >  define LSOF_CONFIGURE_CMDS
> >  	(cd $(@D) ; \
> >  		echo n | $(TARGET_CONFIGURE_OPTS) DEBUG="$(TARGET_CFLAGS)
> >  		$(BR2_LSOF_CFLAGS)" \
> > -		LSOF_INCLUDE="$(STAGING_DIR)/usr/include" LSOF_CFLAGS_OVERRIDE=1
> > ./Configure linux)
> > +		LSOF_INCLUDE="$(STAGING_DIR)/usr/include" LSOF_CFLAGS_OVERRIDE=1 \
> > +		LSOF_CC="cc --sysroot $(STAGING_DIR)" ./Configure linux)
> 
> It'd be better if $(STAGING_DIR) were quoted.

Actually not because such quotes cause other issues in the configure tests, e.g.
time.h not being found in the test for strftime().

Benoît



More information about the buildroot mailing list