[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Solaris cross-compilation for a PPC linux target
From: |
Marie Laurent |
Subject: |
Solaris cross-compilation for a PPC linux target |
Date: |
Wed, 8 Oct 2003 16:07:43 +0200 |
Dear Sir,
I have modified configure.in of zebra-0.93a to support Solaris
cross-compilation.
The original file did not support PPC Linux cross compilation from a Solaris
host. The Sun workstation got confused about the ipforwarding method. It
ignored the host variable which is different from the build parameter. It
took the Solaris native method instead of the LINUX method based on the
/proc directory.
diff -u zebra-0.93a/configure.in zebra/configure.in
--- zebra-0.93a/configure.in Fri Jun 21 23:03:53 2002
+++ zebra/configure.in Wed Oct 1 19:14:35 2003
@@ -445,6 +445,8 @@
zebra_ipforward_path="proc";;
"/dev/ip")
case "$host" in
+ *-linux-*) IPFORWARD=ipforward_proc.o
+ zebra_ipforward_path="proc";;
*-nec-sysv4*) IPFORWARD=ipforward_ews.o
zebra_ipforward_path="ews";;
*) IPFORWARD=ipforward_solaris.o
May you include this small patch (+ 2 lines) in the new release of zebra ?
On the other hand, here is the typical configure command line that I use on
my Solaris workstation :
CC=${CROSS_COMPILE}gcc AR=${CROSS_COMPILE}ar LD=${CROSS_COMPILE}ld
./configure --disable-bgpd --disable-ipv6 --enable-nssa --enable-opaque-lsa
--enable-ospf-te --build=sparc-solaris2 --host=ppc-linux
--with-gcc=ppc_4xx-gcc
where CROSS_COMPILE=ppc_4xx-
Yours sincerely,
Laurent MARIE
- Solaris cross-compilation for a PPC linux target,
Marie Laurent <=