Hi, On Tue, Mar 01, 2011 at 07:51:08AM +0100, Daniel Kriesten wrote: > Am 28.02.2011 um 20:01 schrieb Michael Olbrich: > > > On Wed, Feb 23, 2011 at 04:44:32PM +0100, [email protected] > > wrote: > >> From: Daniel Kriesten <[email protected]> > >> > >> This patch extends the setup.py call to reflect CC and LDSHARED for > >> crosscompiling the python bindings > > > > Please elaborate why this patch is needed. As far as I can tell the python > > bindings are built with the cross compiler. > > On my host machine it's not. AFAIR 'setup.py build_ext' gets the compiler > from CC and the "shared linker" is taken from LDSHARED. The -shared get lost > if LDSHARED is overwritten (linking is done by '<your-compiler-prefix>-gcc > -shared') so the shared flag has to be placed in CFLAGS (Ok, may be one could > also pass it in LDSHARED. > > I needed the python bindings on a ppc target and figured out it was build > using hosts gcc. Diving deeper in the pythons distutils package I assumend > using these flags is the intended way?
Hmmm, the bindings are built with the cross gcc here. Please remove your autogen patch and then: $ ptxdist clean gpsd $ rm platform-<XX>/logfile $ ptxdist targetinstall gpsd -ji1 and send me the logfile. Regards, Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list [email protected]
