cross compile in mac (--target=i586-elf)
Dear OS developer
the libelf can't be cross compile in macby default, here is the tutoral
1) unzip your libelf-0.8.13.tar.gz2
2) don't ./configure with --target, because it won't help
3) edit config.h
change to these values:
#define HAVE_MMAP 0
#define HAVE_CATGETS 0
4) edit Makefile and lib/Makefile
change gcc,ld,ranlib to your toolchain's one
the libelf can't be cross compile in macby default, here is the tutoral
1) unzip your libelf-0.8.13.tar.gz2
2) don't ./configure with --target, because it won't help
3) edit config.h
change to these values:
#define HAVE_MMAP 0
#define HAVE_CATGETS 0
4) edit Makefile and lib/Makefile
change gcc,ld,ranlib to your toolchain's one
沒有留言: