Re: cross-compiling RPMs (follow up to previous post)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jul 15, 2005, at 12:12 PM, Robert P. J. Day wrote:

what i'm really trying to do is cross-compile the lftp source rpm
for the PPC.

YMMV for PPC, but here's what I do for ARM (pay attention to the -- host and --build in configure):

export PATH=/opt/crosstool/arm-linux/gcc-3.4.2-glibc-2.3.3/bin:/opt/ montavista/common/eclipse:/opt/montavista/pro/host/bin:/opt/ montavista/pro/devkit/arm/xscale_le/bin:$PATH

export CC=arm-linux-gcc
export AR=arm-linux-ar
export LD=arm-linux-ld
export RANLIB=arm-linux-ranlib
export STRIP=arm-linux-strip
export PKG_CONFIG_PATH=/opt/fdo/lib/pkgconfig:/opt/gtk/lib/pkgconfig

# ./configure usage: --host=$HOST
export HOST=arm-linux

# ./configure usage: --build=$BUILD
export BUILD=i686-pc-linux-gnu

# ./configure usage: --x-includes=$X11_INCDIR
export X11_INCDIR=/opt/fdo/include

# ./configure usage: --x-libraries=$X11_LIBDIR
export X11_LIBDIR=/opt/fdo/lib

# ./configure usage: --with-kerneldir=$KERNDIR
export KERNDIR=/usr/src/Pad2Linux3_1/

And then, in the SPEC file:

%build
./configure --host=arm-linux --build=i686-pc-linux-gnu --prefix=% {prefix} --bindir=%{bindir} --sbindir=%{sbindir} --libexec dir=% {libexecdir} --datadir=%{datadir} --sysconfdir=%{sysconfdir} --libdir= %{libdir} --includedir=%{includedir} --infodir=%{infodir} --mandir=% {mandir}
make

/Sean/


[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux