remove useless xorg macros patch
[openwrt/svn-archive/archive.git] / utils / lm-sensors / patches / 100-Makefile.patch
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
3 @@ -45,7 +43,7 @@
4 # may be used mistakenly. Note: This should point to the directory
5 # *above* the linux/ subdirectory, so to /usr/local/include in the
6 # above example.
7 -I2C_HEADERS := /usr/local/include
8 +I2C_HEADERS := $(STAGING_DIR)/usr/include
9 #I2C_HEADERS := $(LINUX_HEADERS)
10
11 ifneq ($(MAKECMDGOALS),user)
12 @@ -75,10 +73,10 @@
13 DESTDIR :=
14
15 # This is the prefix that will be used for almost all directories below.
16 -PREFIX := /usr/local
17 +PREFIX := /usr
18
19 # Your C compiler
20 -CC := gcc
21 +CC := $(TARGET_CC)
22
23 # This is the main modules directory into which the modules will be installed.
24 # The magic invocation will return something like this:
25 @@ -117,7 +115,7 @@
26 # library files (both static and shared) will be installed.
27 LIBDIR := $(PREFIX)/lib
28
29 -EXLDFLAGS := -Wl,-rpath,$(LIBDIR)
30 +EXLDFLAGS := -Wl,-rpath,$(LIBDIR),-rpath-link,$(STAGING_DIR)/usr/lib
31
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
36 @@ -66,7 +66,7 @@
37 # How to create the shared library
38 ifdef SYSFS_SUPPORT
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
42 else
43 $(MODULE_DIR)/$(LIBSHLIBNAME): $(LIBSHOBJECTS)
44 $(CC) -shared -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm