[Buildroot] [PATCH 1/5] python-pyasn: new package

Ryan Barnett rjbarnet at rockwellcollins.com
Thu Oct 3 22:39:41 UTC 2013


Thomas,

Thomas Petazzoni <thomas.petazzoni at free-electrons.com> wrote on
10/03/2013 04:17:55 PM:

> Dear Ryan Barnett,
> 
> On Thu, 3 Oct 2013 15:01:01 -0500, Ryan Barnett wrote:
> 
> > +      CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
> > +      CXX="$(TARGET_CXX)" \
> > +      CXXFLAGS="$(TARGET_CXXFLAGS) -I$(STAGING_DIR)/usr/include" \
> > +      LDSHARED="$(TARGET_CC) -shared" \
> > +      LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/lib -L$
> (STAGING_DIR)/usr/lib" \
> 
> These additional -I and -L are rather weird because they simply pass
> what are already the default search paths for headers and libraries.

The additional -I and -L are needed to ensure that the $(STAGING_DIR)
header and library files are pulled. Otherwise the distutils package 
before the ones that the distutils package will find the 
headers/libraries that are located at $(HOST_DIR)/usr.

I've added this comment to both pyasn and pycrypto. I'm not a fan
of it but I don't really want to rewrite the setup.py in order to 
support cross compiling.

> Thomas
> -- 
> Thomas Petazzoni, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com




More information about the buildroot mailing list