I see in the spec file that the shared libs are built.  This patch
installs those shared if option selected.  I added this as an option
under package selection since may not always be desired, but I found
another package (in progress) that actually wants the shared library
instead of the archive.
Index: config/userspace/packages.lkc
===================================================================
RCS file: /sources/ltib/ltib/config/userspace/packages.lkc,v
retrieving revision 1.45
diff -u -r1.45 packages.lkc
--- config/userspace/packages.lkc	31 Oct 2011 20:34:42 -0000	1.45
+++ config/userspace/packages.lkc	5 Nov 2011 12:55:11 -0000
@@ -293,6 +293,12 @@
       Bzip2 is a freely available, patent-free, high-quality data compressor
       that uses the same command line flags as gzip.
 
+config PKG_BZIP2_WANT_SHARED
+    depends PKG_BZIP2
+    bool "bzip2 shared library install"
+    help
+      Install the bzip2 shared library.
+
 config PKG_CAIRO
     depends CAP_HAS_MMU
     select PKG_LIBPNG
Index: dist/lfs-5.1/bzip2/bzip2.spec
===================================================================
RCS file: /sources/ltib/ltib/dist/lfs-5.1/bzip2/bzip2.spec,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 bzip2.spec
--- dist/lfs-5.1/bzip2/bzip2.spec	27 Nov 2006 11:19:18 -0000	1.1.1.2
+++ dist/lfs-5.1/bzip2/bzip2.spec	5 Nov 2011 12:55:11 -0000
@@ -30,6 +30,12 @@
 %Install
 rm -rf $RPM_BUILD_ROOT
 make install PREFIX=$RPM_BUILD_ROOT/%{pfx}/%{_prefix}
+if [ "$PKG_BZIP2_WANT_SHARED" = "y" ]
+then
+   cp -a libbz2.so.1.0.2 ${RPM_BUILD_ROOT}/%{prefix}/usr/lib/
+   ln -s libbz2.so.1.0.2 ${RPM_BUILD_ROOT}/%{prefix}/usr/lib/libbz2.so.1
+   ln -s libbz2.so.1 ${RPM_BUILD_ROOT}/%{prefix}/usr/lib/libbz2.so
+fi
 
 %Clean
 rm -rf $RPM_BUILD_ROOT
_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib

Reply via email to