* [lm-sensors] Skip building of the static libsensors
@ 2009-04-20 9:22 Jean Delvare
2009-04-20 10:08 ` Hans de Goede
2009-04-20 20:30 ` Aurelien Jarno
0 siblings, 2 replies; 3+ messages in thread
From: Jean Delvare @ 2009-04-20 9:22 UTC (permalink / raw)
To: lm-sensors
Hi all,
OpenSuse is apparently getting rid of all static libraries. I tend to
agree, static libraries are almost always the wrong thing to do (think
bug fixes and maintenance updates).
In order to help, I have just modified the libsensors build system to
make it possible to skip the static library. It is more efficient than
letting it build and then just not installing it. If you want to skip
building of the static library, all you have to do is change:
BUILD_STATIC_LIB := 1
to
BUILD_STATIC_LIB := 0
in the main Makefile. Or alternatively, build with:
make BUILD_STATIC_LIB=0
(Then don't forget to also pass this parameter to "make install".)
I am curious what the policy of other distributions is. If nobody is
interested in the static library then maybe it would make sense to
change the default to 0?
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [lm-sensors] Skip building of the static libsensors
2009-04-20 9:22 [lm-sensors] Skip building of the static libsensors Jean Delvare
@ 2009-04-20 10:08 ` Hans de Goede
2009-04-20 20:30 ` Aurelien Jarno
1 sibling, 0 replies; 3+ messages in thread
From: Hans de Goede @ 2009-04-20 10:08 UTC (permalink / raw)
To: lm-sensors
On 04/20/2009 11:22 AM, Jean Delvare wrote:
> Hi all,
>
> OpenSuse is apparently getting rid of all static libraries. I tend to
> agree, static libraries are almost always the wrong thing to do (think
> bug fixes and maintenance updates).
>
> In order to help, I have just modified the libsensors build system to
> make it possible to skip the static library. It is more efficient than
> letting it build and then just not installing it. If you want to skip
> building of the static library, all you have to do is change:
>
> BUILD_STATIC_LIB := 1
>
> to
>
> BUILD_STATIC_LIB := 0
>
> in the main Makefile. Or alternatively, build with:
>
> make BUILD_STATIC_LIB=0
>
> (Then don't forget to also pass this parameter to "make install".)
>
> I am curious what the policy of other distributions is. If nobody is
> interested in the static library then maybe it would make sense to
> change the default to 0?
>
We've long gotten rid of 99% of all static libs in Fedora. The few
remaining static libs are a left over from when we used static binaries
in the initrd, now a days even the initrd uses dynamic linking in Fedora.
So I'm all for making the default 0.
Regards,
Hans
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [lm-sensors] Skip building of the static libsensors
2009-04-20 9:22 [lm-sensors] Skip building of the static libsensors Jean Delvare
2009-04-20 10:08 ` Hans de Goede
@ 2009-04-20 20:30 ` Aurelien Jarno
1 sibling, 0 replies; 3+ messages in thread
From: Aurelien Jarno @ 2009-04-20 20:30 UTC (permalink / raw)
To: lm-sensors
On Mon, Apr 20, 2009 at 11:22:59AM +0200, Jean Delvare wrote:
> Hi all,
>
> OpenSuse is apparently getting rid of all static libraries. I tend to
> agree, static libraries are almost always the wrong thing to do (think
> bug fixes and maintenance updates).
>
> In order to help, I have just modified the libsensors build system to
> make it possible to skip the static library. It is more efficient than
> letting it build and then just not installing it. If you want to skip
> building of the static library, all you have to do is change:
>
> BUILD_STATIC_LIB := 1
>
> to
>
> BUILD_STATIC_LIB := 0
>
> in the main Makefile. Or alternatively, build with:
>
> make BUILD_STATIC_LIB=0
>
> (Then don't forget to also pass this parameter to "make install".)
>
> I am curious what the policy of other distributions is. If nobody is
> interested in the static library then maybe it would make sense to
> change the default to 0?
>
Debian still ships both shared and static libraries, but all packages
must link to the shared library. static libraries are reserved for local
use.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-04-20 20:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-20 9:22 [lm-sensors] Skip building of the static libsensors Jean Delvare
2009-04-20 10:08 ` Hans de Goede
2009-04-20 20:30 ` Aurelien Jarno
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.