[PATCH] Thread-safe libsensors

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

 



Hi all,

I noticed that the Suse sensors package is compiled with the following
change (amongst many others):

Index: Makefile
===================================================================
--- Makefile	(revision 4317)
+++ Makefile	(working copy)
@@ -279,7 +279,7 @@
 ifdef SYSFS_SUPPORT
 LIBCPPFLAGS := $(LIBCPPFLAGS) -DSYSFS_SUPPORT
 endif
-LIBCFLAGS := -fpic $(ALL_CFLAGS)
+LIBCFLAGS := -fpic -D_REENTRANT $(ALL_CFLAGS)
 
 .PHONY: all user clean install user_install uninstall user_uninstall version package
 

I seem to understand that it is required for libsensors to be
thread-safe, which would be a nice feature if any multithreaded
application ever wants to link with it. So I think I'll apply this
patch to our repository before releasing lm_sensors 2.10.3. Comment
anyone?

-- 
Jean Delvare




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux