1 --- lm-sensors-2.10.1.orig/Makefile.orig 2006-09-25 00:30:10.000000000 +0200
2 +++ lm-sensors-2.10.1/Makefile 2006-12-09 21:13:50.000000000 +0100
4 # may be used mistakenly. Note: This should point to the directory
5 # *above* the linux/ subdirectory, so to /usr/local/include in the
7 -I2C_HEADERS := /usr/local/include
8 +I2C_HEADERS := $(STAGING_DIR)/usr/include
9 #I2C_HEADERS := $(LINUX_HEADERS)
11 ifneq ($(MAKECMDGOALS),user)
15 # This is the prefix that will be used for almost all directories below.
23 # This is the main modules directory into which the modules will be installed.
24 # The magic invocation will return something like this:
26 # library files (both static and shared) will be installed.
27 LIBDIR := $(PREFIX)/lib
29 -EXLDFLAGS := -Wl,-rpath,$(LIBDIR)
30 +EXLDFLAGS := -Wl,-rpath,$(LIBDIR),-rpath-link,$(STAGING_DIR)/usr/lib
32 # You should not need to change this. It is the directory into which the
33 # executable program files will be installed. BINDIR for programs that are
34 --- lm-sensors-2.10.1.orig/lib/Module.mk 2006-09-25 00:30:10.000000000 +0200
35 +++ lm-sensors-2.10.1/lib/Module.mk 2006-12-09 21:14:20.000000000 +0100
37 # How to create the shared library
39 $(MODULE_DIR)/$(LIBSHLIBNAME): $(LIBSHOBJECTS)
40 - $(CC) -shared -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm -lsysfs
41 + $(CC) -shared -L$(STAGING_DIR)/usr/lib -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm -lsysfs
43 $(MODULE_DIR)/$(LIBSHLIBNAME): $(LIBSHOBJECTS)
44 $(CC) -shared -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm