[Dovecot] cross compiling (arm)

Stephen Feyrer
Thu, 18 Jun 2009 17:43:01 -0000

Hi.

I'm trying to cross compile dovecot.

My desktop machine is an AMD64 box with bells and whistles.  The ARM
based machine is a network attached storage box.  When I run "make"
always get x86_64 binaries.
My OS is Gentoo, so I have been able to build using emerge a variety of
other programs from source.  What am I doing wrong here.  (Gentoo
doesn't have Dovecot for the arm)

I run:
./configure --prefix=/opt --target=armv5tel-softfloat-linux-gnueabi
host=armv5tel-softfloat-linux-gnueabi --build=x86_64-pc-linux-gnu
--cache-file=config.cache

These are some values from config.cache which I think are pertinent:

ac_cv_build=${ac_cv_build=x86_64-pc-linux-gnu}
ac_cv_c_compiler_gnu=${ac_cv_c_compiler_gnu=yes}
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-pc-linux-gnu
ac_cv_env_host_alias_setac_cv_env_host_alias_valueac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=armv5tel-softfloat-linux-gnueabi
acl_cv_path_LD=${acl_cv_path_LD='/usr/x86_64-pc-linux-gnu/bin/ld -m
elf_x86_64'}
lt_cv_path_LDCXX=${lt_cv_path_LDCXX='/usr/x86_64-pc-linux-gnu/bin/ld -m
elf_x86_64'}
lt_cv_sys_lib_dlsearch_path_spec=${lt_cv_sys_lib_dlsearch_path_spec='/lib
/usr/lib /usr/local/lib //usr/lib32/opengl/nvidia/lib
//usr/lib64/opengl/nvidia/lib /lib /usr/lib /lib64 /usr/lib64
/usr/local/lib64 /lib32 /usr/lib32 /usr/local/lib32
/usr/x86_64-pc-linux-gnu/lib /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/32
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.3/32
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/32 /usr/lib64/nspr /usr/lib64/nss
/usr/lib64/seamonkey /opt/blackdown-jdk-1.4.2.03/jre/lib/amd64/
/opt/blackdown-jdk-1.4.2.03/jre/lib/amd64/native_threads/
/opt/blackdown-jdk-1.4.2.03/jre/lib/amd64/classic/
/opt/blackdown-jdk-1.4.2.03/jre/lib/amd64/server/ /usr/kde/4.1/lib
/usr/kde/4.1/lib64 /usr/kde/4.1/lib32 /usr/kde/4.2/lib
/usr/kde/4.2/lib64 /usr/kde/4.2/lib32 /usr/lib64/qca1 /usr/lib64/qca2
/usr/lib/qt4 /usr/lib64/qt4 /usr/lib32/qt4 /usr/qt/3/lib /usr/qt/3/lib64
/usr/qt/3/lib32 /usr/games/lib /usr/games/lib64 /usr/games/lib32
/opt/flash-libcompat /usr/lib64/fltk-1.1 /usr/lib32/libstdc++-v3/ '}
lt_cv_sys_lib_search_path_spec=${lt_cv_sys_lib_search_path_spec='/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2
/usr/lib64 /lib64 /usr/x86_64-pc-linux-gnu/lib'}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3322 bytes
Desc: S/MIME Cryptographic Signature
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20090618/124c8bc7/attachment-0002.bin>