Skip to contentSkip to conversation

Cross compile bug?

DISCUSSION Lee Revell 1 participant 2 messages Jun 6, 2006

lore
Share & tools
lore

Lee Revell

author
#0 lore raw

I'm on an x86 machine trying to cross compile alsa-lib for PPC440 and it insists on installing to /usr/lib.

My build script looks like:

echo " Building and installing alsa-lib (~1min)" cd packages/alsa-lib-1.0.11 CC="$CROSS_COMPILE"gcc ./configure --host=ppc-linux make -s
make -s prefix=$1/usr/local install

        ^^^^^^^^^^^^^^^^^^^

make -s distclean

However, libasound is installed to /usr/lib.

Why is prefix being ignored? What is the correct way to cross compile alsa-lib?

Lee

author
#1 lore raw
Quoted 10 lines · Lee Revell

I'm on an x86 machine trying to cross compile alsa-lib for PPC440 and it insists on installing to /usr/lib.

My build script looks like:

echo " Building and installing alsa-lib (~1min)" cd packages/alsa-lib-1.0.11 CC="$CROSS_COMPILE"gcc ./configure --host=ppc-linux make -s
make -s prefix=$1/usr/local install

Quoted 7 lines
        ^^^^^^^^^^^^^^^^^^^

make -s distclean

However, libasound is installed to /usr/lib.

Why is prefix being ignored? What is the correct way to cross compile alsa-lib?

OK I have resolved this by moving prefix from the install line to the ./configure line.

Lee