summaryrefslogtreecommitdiff
path: root/package/cpufrequtils/patches/patch-Makefile
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2010-01-20 19:34:36 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-01-20 21:49:40 +0100
commit91d3746692ed965827c37d0e1e1d5458e8b812c8 (patch)
tree9f2ed1d2bd6e49a89ba39b4da18a9a470a42d527 /package/cpufrequtils/patches/patch-Makefile
parent9cfd98fcee29697aa9da5b5fb11c7e7f0ce318b7 (diff)
port cpufrequtils (FIXME)
Still doesn't install, somehow libtool messes things up. Looks a bit like we have to deliver our own, cross-compiled libbtool sooner or later.
Diffstat (limited to 'package/cpufrequtils/patches/patch-Makefile')
-rw-r--r--package/cpufrequtils/patches/patch-Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/package/cpufrequtils/patches/patch-Makefile b/package/cpufrequtils/patches/patch-Makefile
new file mode 100644
index 000000000..aa8bba6d3
--- /dev/null
+++ b/package/cpufrequtils/patches/patch-Makefile
@@ -0,0 +1,38 @@
+ - allow passing libtool options via environment variables
+ - drop hard-coded -rpath flag when linking with libtool (distracts tagged configs)
+--- cpufrequtils-007.orig/Makefile 2010-01-16 14:47:44.000000000 +0100
++++ cpufrequtils-007/Makefile 2010-01-20 14:09:02.171177883 +0100
+@@ -147,11 +147,11 @@ CFLAGS += $(WARNINGS)
+
+ ifeq ($(strip $(V)),false)
+ QUIET=@$(PWD)/build/ccdv
+- LIBTOOL_OPT=--silent
++ LIBTOOL_OPT+=--silent
+ HOST_PROGS=build/ccdv
+ else
+ QUIET=
+- LIBTOOL_OPT=
++ LIBTOOL_OPT+=
+ HOST_PROGS=
+ endif
+
+@@ -185,8 +185,8 @@ libcpufreq.la: $(LIB_OBJS) $(LIB_HEADERS
+ echo '*** At least one of /sys support or /proc support MUST be enabled ***'; \
+ exit -1; \
+ fi;
+- $(QUIET) $(LIBTOOL) $(LIBTOOL_OPT) --mode=link $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o libcpufreq.la -rpath \
+- ${libdir} -version-info $(LIB_VERSION) $(LIB_PARTS)
++ $(QUIET) $(LIBTOOL) $(LIBTOOL_OPT) --mode=link $(CC) $(CPPFLAGS) $(CFLAGS) -rpath ${libdir} $(LDFLAGS) -o libcpufreq.la \
++ -version-info $(LIB_VERSION) $(LIB_PARTS)
+
+ libcpufreq: libcpufreq.la
+
+@@ -232,7 +232,7 @@ clean:
+
+ install-lib:
+ $(INSTALL) -d $(DESTDIR)${libdir}
+- $(LIBTOOL) --mode=install $(INSTALL) libcpufreq.la $(DESTDIR)${libdir}/libcpufreq.la
++ sh -x $(LIBTOOL) --mode=install $(INSTALL) libcpufreq.la $(DESTDIR)${libdir}/libcpufreq.la
+ $(INSTALL) -d $(DESTDIR)${includedir}
+ $(INSTALL_DATA) lib/cpufreq.h $(DESTDIR)${includedir}/cpufreq.h
+