mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
https://github.com/lm-sensors/lm-sensors/blob/V3-6-2/CHANGES Removed patch 0002 which is included in this release:e31cb3b2f8Rebased and renumbered remaining patch. Updated license hash due to upstream commit6128b9e8ebSigned-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Julien Olivain <ju.o@free.fr>
32 lines
1.4 KiB
Diff
32 lines
1.4 KiB
Diff
Remove usage of host ldconfig
|
|
|
|
To know whether the libiconv library is available, lm-sensors is using
|
|
the host ldconfig, which is obviously wrong in cross-compilation.
|
|
|
|
Moreover, the lm-sensors program making use of the iconv_*() API
|
|
already does it when __UCLIBC__ is *not* defined. In this case, the
|
|
iconv_*() functions are already part of the C library, so there is no
|
|
need to link against a separate library. Therefore, this patch simply
|
|
removes the libiconv handling.
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
[Bernd: rebased for 3.6.2]
|
|
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
|
|
|
Index: b/prog/sensors/Module.mk
|
|
===================================================================
|
|
--- a/prog/sensors/Module.mk
|
|
+++ b/prog/sensors/Module.mk
|
|
@@ -39,10 +39,8 @@
|
|
REMOVESENSORSMAN := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(PROGSENSORSMAN1DIR)/%,$(PROGSENSORSMAN1FILES))
|
|
REMOVESENSORSZSH := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(ZSHCOMPDIR)/%,$(PROGSENSORSZSHCOMPFILES))
|
|
|
|
-LIBICONV := $(shell if /sbin/ldconfig -p | grep -q '/libiconv\.so$$' ; then echo \-liconv; else echo; fi)
|
|
-
|
|
$(PROGSENSORSTARGETS): $(PROGSENSORSSOURCES:.c=.ro) lib/$(LIBDEP_FOR_PROGS)
|
|
- $(CC) $(EXLDFLAGS) -o $@ $(PROGSENSORSSOURCES:.c=.ro) $(LIBICONV) -Llib -lsensors -lm
|
|
+ $(CC) $(EXLDFLAGS) -o $@ $(PROGSENSORSSOURCES:.c=.ro) -Llib -lsensors -lm
|
|
|
|
all-prog-sensors: $(PROGSENSORSTARGETS)
|
|
user :: all-prog-sensors
|