[PATCH] for libfoo.py

David Faure faure at kde.org
Tue Jan 3 12:13:57 CET 2006


On Tuesday 03 January 2006 07:14, Christian Ehrlicher wrote:
> LIBSUFFIX is the suffix of the static libary and SHLIBSUFFIX is for
> dynamic libs. The problem here is that win32 needs the static lib
> (because it's the import lib) and you the dynamic one.
> I've fixed it by explicit specifying the correct extension and will
> think over how to handle this.

Thanks; this isn't enough though. It must be .dylib on Mac, and the "lib" prefix is missing
on unix and mac.

ext=env['SHLIBSUFFIX'] solves the first part (in the non-windows part of the if of course),
but what about the libprefix?
I see self.libprefix in generic.py, do we need to put it in env[] so that libjpeg.py can use it?

> What about linking against a static libjpeg? Should this be possible and
> how to say this bksys?

I don't know; but I personally don't care much for a static libjpeg ;)

I'm so surprised that scons doesn't handle all of this already. We chose scons
to avoid developing our own solution from scratch, but in the end it really looks
like we have no other choice :(

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).



More information about the Kde-buildsystem mailing list