[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cross-compiling - libkern/Makefile
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: cross-compiling - libkern/Makefile
- From: David Leonard <leonard_(_at_)_dstc_(_dot_)_qut_(_dot_)_edu_(_dot_)_au>
- Date: Fri, 13 Feb 1998 23:33:42 +1000 (EST)
- Reply-to: David Leonard <david_(_dot_)_leonard_(_at_)_dstc_(_dot_)_edu_(_dot_)_au>
when trying to get the cross compiler to work from mac68k->sparc and
build kernels I noticed that NM wasn't being handled. And because
lorder uses the envvar NM, I found that I had to put that in as well.
And AR, STRIP and CPP for good luck.
Here's a possible patch. Comments?
RCS file: /cvs/src/sys/lib/libkern/Makefile.inc,v
retrieving revision 1.8
diff -u -r1.8 Makefile.inc
--- Makefile.inc 1997/06/19 18:23:21 1.8
+++ Makefile.inc 1998/02/11 10:16:25
@@ -21,6 +21,8 @@
CC='${CC}' CFLAGS='${CFLAGS}' \
AS='${AS}' AFLAGS='${AFLAGS}' \
LD='${LD}' STRIP='${STRIP}' \
+ CPP='${CPP}' STRIP='${STRIP}' AR='${AR}' \
+ NM='${NM}' LORDER='${LORDER}'\
MACHINE='${MACHINE}' MACHINE_ARCH='${MACHINE_ARCH}' \
KERNCPPFLAGS='${CPPFLAGS:S_(_at_)_^-I_(_dot_)_@-I../../_(_dot_)__(_at_)_g}'
In the end, the nm built with 'make cross-tools' was hitting a null pointer
while lordering something in libkern. So I gave up and downloaded the
comp22 tarball for sparc :)
d
--
David Leonard David_(_dot_)_Leonard_(_at_)_dstc_(_dot_)_edu_(_dot_)_au
Distributed Systems Technology Centre Room:S-1223 Ph:+61 7 3864 4471
Queensland University of Technology http://www.dstc.edu.au/~leonard/
Q 4001 Australia E2A24DC6446E5779D7AFC41AA04E6401
'Bother', said Pooh, as he distributed cigarettes in the Coronary ICU
Visit your host, monkey.org