public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Building MTD utils w/ arm-linux- cross
@ 2003-05-02 19:05 Michael Moedt
  2003-05-02 20:29 ` Thomas Gleixner
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Moedt @ 2003-05-02 19:05 UTC (permalink / raw)
  To: linux-mtd

Hi.

I ran into a little bit of trouble compiling the MTD
utilities for an ARM-based system.  I'm using
2.4.19-rmk7 for an EP7312.  I executed the
'patchin.sh' to this kernel directory, and copied the
'util' directory over.  It compiles fine for the host
system (x86), but when I uncommented the
"CROSS=arm-linux-", it didn't compile correctly.

Anyways, the trouble was in the form of:

-----
arm-linux-gcc -I../include -O2 -Wall
-Wstrict-prototypes -Wshadow   -c -o eraseall.o
eraseall.c
eraseall.c:40: zlib.h: No such file or directory
make: *** [eraseall.o] Error 1
mmoedt@reptar:~/gonzo/linux-2.4.19-rmk7/util$
-----

Well, I installed zlib-1.1.4 into
/usr/local/arm/2.95.3 , but I needed to add -I and -L
flags to the Makefile in order for it to find it.  It
seems to work, but I didn't find this anywhere when I
searched the mailing list.  Is this the standard
procedure, or am I doing something wrong?

Anyways, I also wanted to let someone with CVS access
know that there's a typo in the Makefile.  In
eraseall's build rule, it uses $(LDLAGS) instead of
$(LDFLAGS).  I guess no one needs to add the '-L'
LDFLAG other than me?

Mike



__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-02 19:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-02 19:05 Building MTD utils w/ arm-linux- cross Michael Moedt
2003-05-02 20:29 ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox