summaryrefslogtreecommitdiffstats
path: root/patches/cpufrequtils-007/0001-Fix-various-issues-while-cross-compiling.patch
blob: d87d18dec230c289c7a45f2166cac86948abe1ad (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
From: Juergen Beisert <j.beisert@pengutronix.de>
Date: Sat, 29 Oct 2011 19:03:54 +0200
Subject: [PATCH] Fix various issues while cross compiling

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
 Makefile |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile
index f44f817..1b27ecf 100644
--- a/Makefile
+++ b/Makefile
@@ -80,17 +80,20 @@ INSTALL = /usr/bin/install -c
 INSTALL_PROGRAM = ${INSTALL}
 INSTALL_DATA  = ${INSTALL} -m 644
 INSTALL_SCRIPT = ${INSTALL_PROGRAM}
-LIBTOOL = /usr/bin/libtool
+# --tag required to make libtool happy about the source type
+LIBTOOL = libtool --tag CC
 
 # If you are running a cross compiler, you may want to set this
 # to something more interesting, like "arm-linux-".  If you want
 # to compile vs uClibc, that can be done here as well.
-CROSS = #/usr/i386-linux-uclibc/usr/bin/i386-uclibc-
-CC = $(CROSS)gcc
-LD = $(CROSS)gcc
-AR = $(CROSS)ar
-STRIP = $(CROSS)strip
-RANLIB = $(CROSS)ranlib
+
+# ptxdist will overwrite them
+#CROSS = #/usr/i386-linux-uclibc/usr/bin/i386-uclibc-
+#CC = $(CROSS)gcc
+#LD = $(CROSS)gcc
+#AR = $(CROSS)ar
+#STRIP = $(CROSS)strip
+#RANLIB = $(CROSS)ranlib
 HOSTCC = gcc