From b137e367bb833ca82b396622997f512f5c856a41 Mon Sep 17 00:00:00 2001 From: "lethal@linux-sh.org" Date: Tue, 5 Aug 2003 01:10:01 -0700 Subject: [PATCH] udev/libsysfs cross compile fixes I noticed that libsysfs doesn't inherently grab cross compilation arguments that are set in the top-level Makefile, so I've come up with the following patch to fix this. With the patch, I can succesfully cross compile for other architectures (such as sh) by doing 'make ARCH=sh CROSS=sh-linux-' in the top-level directory. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b1adf3456c..a7bb01d247 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,9 @@ CROSS = #/usr/i386-linux-uclibc/usr/bin/i386-uclibc- CC = $(CROSS)gcc AR = $(CROSS)ar STRIP = $(CROSS)strip +RANLIB = $(CROSS)ranlib +export CROSS CC AR STRIP RANLIB # code taken from uClibc to determine the current arch ARCH := ${shell $(CC) -dumpmachine | sed -e s'/-.*//' -e 's/i.86/i386/' -e 's/sparc.*/sparc/' \ -- cgit v1.2.3-54-g00ecf