Adjusting the Makefile to use the shared library

Pierre-Yves Chibon pingou at pingoured.fr
Tue Jul 17 05:02:54 PDT 2012


Hi,

I have discovered subsurface yesterday and I spent some time writing the
spec files for both libdivecomputer and subsurface.
I made both src.rpm available on my fedorapeople.org space: [1] and [2].

While building the rpm I noticed that subsurface builds against the
static library of libdivecomputer. Fedora tries to avoid the use of
static library as much as possible [3], so I would like to offer the
attached patch for your consideration.

It simply add checks on the shared library after checking for the static
one. Subsurface builds and runs fine against the shared library.

Regards,
Pierre


[1]:
http://pingou.fedorapeople.org/RPMs/libdivecomputer-0.1.0-2.20120717.git4bc477b.fc17.src.rpm
[2]:
http://pingou.fedorapeople.org/RPMs/subsurface-1.2-2.20120717.git7fe652a.fc17.src.rpm
[3]:
http://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Static_Libraries
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Compile-against-the-shared-if-no-static-library-foun.patch
Type: text/x-patch
Size: 1794 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20120717/871a0ba1/attachment.bin>


More information about the subsurface mailing list