Blame view

buildroot/buildroot-2016.08.1/package/lm-sensors/0002-no-host-ldconfig.patch 1.31 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  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>
  
  Index: b/prog/sensors/Module.mk
  ===================================================================
  --- a/prog/sensors/Module.mk
  +++ b/prog/sensors/Module.mk
  @@ -37,10 +37,8 @@
   REMOVESENSORSBIN := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(BINDIR)/%,$(PROGSENSORSTARGETS))
   REMOVESENSORSMAN := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(PROGSENSORSMAN1DIR)/%,$(PROGSENSORSMAN1FILES))
   
  -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