Subject: Re: cross pkgsrc build
To: Emmanuel Dreyfus <manu@netbsd.org>
From: Frederick Bruckman <fredb@immanent.net>
List: tech-pkg
Date: 07/14/2002 10:57:12
On Sun, 14 Jul 2002, Emmanuel Dreyfus wrote:

> Is there a simple/standard/prefered way for cross-building pkgsrc? Just
> using the nbmake wrapper provided by the build machinery tools does not
> work.

No simple way. If you make
"${TOOLDIR}/${MACHINE_GNU_PLATFORM}/include" a symlink
to "${DESTDIR}/usr/include", and set your path to
"${TOOLDIR}/${MACHINE_GNU_PLATFORM}/bin:${PATH}", you'll be
cross-compiling, but it may require some art to get various packages
to accept that. For "pkgsrc", assuming you get your package to build
in the first place, you'll want to set ${MACHINE} and ${DESTDIR}.
(That's the easy part.)

Frederick