Changeset 2394

Show
Ignore:
Timestamp:
03/27/04 11:30:04 (10 years ago)
Author:
khali
Message:

Autodetect if we need to link against libiconv.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/sensors/Module.mk

    r2189 r2394  
    3434INCLUDEFILES += $(PROGSENSORSSOURCES:.c=.rd) 
    3535 
     36LIBICONV := $(shell if /sbin/ldconfig -p | grep -q libiconv\\.so ; then echo \-liconv; else echo; fi) 
     37 
    3638$(PROGSENSORSTARGETS): $(PROGSENSORSSOURCES:.c=.ro) lib/$(LIBSHBASENAME) 
    37         $(CC) $(EXLDFLAGS) -o $@ $(PROGSENSORSSOURCES:.c=.ro) -Llib -lsensors 
     39        $(CC) $(EXLDFLAGS) -o $@ $(PROGSENSORSSOURCES:.c=.ro) $(LIBICONV) -Llib -lsensors 
    3840 
    3941all-prog-sensors: $(PROGSENSORSTARGETS)