[Python-Dev] Please give this patch for building bsddb a try
Thomas Heller
thomas.heller@ion-tof.com
Thu, 13 Jun 2002 18:03:00 +0200
From: "Greg Ward" <gward@python.net>
> On 11 June 2002, Martin v. Loewis said:
> > It actually only requires different init functions. To support that
> > with distutils, you need to tell distutils to generate different
> > object files from the same source file, which is probably not
> > supported out of the box.
>
> In theory:
>
> setup(...
> ext_modules=[Extension("foo1", ["foo.c"],
> define_macros=[('FOOSTYLE', 1)]),
> Extension("foo2", ["foo.c"],
> define_macros=[('FOOSTYLE', 2)])])
>
> should work.
But not in practice, IIRC.
Because the build process for foo2 will see that foo.o
is up to date already.
Thomas