On Wed, Dec 13, 2006 at 08:55:14PM +0100, Marcus Habermehl (BMH1980) wrote:
> Hi everybody.
>
> I want to build a rpm package for Python 2.5. But it fails on %install
> (make DESTDIR=%{buildroot} install).
>
> On compiling time I get error messages like:
>
> /usr/bin/ld: cannot find -lpython2.5
> collect2: ld returned 1 exit status
What is it trying to compile on make install?
Try setting LIBRARY_PATH to the possible directories (%{buildroot}%{_libdir},
etc.).
>
> The strange thing is, if I'm using the same commands manually, outside
> of rpmbuild I doesn't get the error messages and "make
> DESTDIR=$buildroot install" is working.
>
> But I don't know why and I can't find differences between ./configure
> from rpmbuild and a manually ./configure.
Did you compare the resulting config.log?
--
lfr
0/0
Attachment:
pgpHBFQYTHgNa.pgp
Description: PGP signature