Subject: Re: Cross compilation and IPsec
To: Hans Huebner <port-hpcmips@netbsd.org>
From: TAKEMURA Shin <takemura@netbsd.org>
List: port-hpcmips
Date: 06/17/2000 23:45:11
----- Original Message -----
From: "Hans Huebner" <hans@Huebner.ORG>
To: <port-hpcmips@netbsd.org>
Sent: Tuesday, June 06, 2000 6:49 PM
Subject: Cross compilation and IPsec


> Hi there,
>
> I'm trying to cross-compile NetBSD/hpcmips on a NetBSD/i386 system since I
> want to have IPsec support.  I've set up a cross compilation environment
> (which works fine for small programs), but "make build" fails in
> crypto-intl/lib/libroken because it tries to generate make-print-version
> (which is seemingly used to generate a version tag file) with the cross
> compiler.
>
> Is there a well established way to invoke the native compiler during a
> cross compilation build.  Did anyone here apply the necessary patches
already?

I'm not sure but you could use HOST_CC macro like:

    usr.bin/tn3270/tools/prt3270/Makefile

I hope that helps you.

Takemura