From: Juergen Beisert Date: Sat, 29 Oct 2011 19:03:54 +0200 Subject: [PATCH] Fix various issues while cross compiling Signed-off-by: Michael Olbrich --- 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