[gamin] gamin: libtool linking fix



Hallo.

Patch below removes illegal references to build directory in
installed .la files. Tested with gamin-0.1.5.

dependency_libs=' -L/usr/src/packages/BUILD/gamin-0.1.5/libgamin/.libs /usr/lib/libgamin-1.la'
found trace of $RPM_BUILD_ROOT or $RPM_BUILD_DIR in installed .la file
error: Bad exit status from /var/tmp/rpm-tmp.23652 (%install)

Daniel Veillard wrote:
>   the .spec.in coming from the distrib states:
> 
> rm -f $RPM_BUILD_ROOT%{_libdir}/*.la

There is not yet clean decision, whether to remove or keep .la files,
but for now SuSE keeps most .la files with exception of plugin .la
files. It helps to prevent weak symbols which break prelinking. SuSE
Autobuild build packages in limited chroot environment. Missing package
causes error while linking with .la file, but weak symbols while linking
without.

The patch is trivial and the result will be correct .la file.

--- python/Makefile.am
+++ python/Makefile.am
@@ -10,7 +10,7 @@
        gamin.c                 \
        gamin.py
 
-_gamin_la_LDFLAGS = -module -avoid-version -L$(top_builddir)/libgamin/.libs
+_gamin_la_LDFLAGS = -module -avoid-version
 
 if WITH_PYTHON
 mylibs =                       \

-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SuSE CR, s. r. o.                             e-mail: sbrabec suse cz
Drahobejlova 27                               tel: +420 296 542 382
190 00 Praha 9                                fax: +420 296 542 374
Czech Republic                                http://www.suse.cz/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]