From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Revell Subject: Re: Cross compile bug? Date: Tue, 06 Jun 2006 17:41:05 -0400 Message-ID: <1149630065.4072.83.camel@mindpipe> References: <1149626761.4072.65.camel@mindpipe> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1149626761.4072.65.camel@mindpipe> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: alsa-devel List-Id: alsa-devel@alsa-project.org On Tue, 2006-06-06 at 16:46 -0400, Lee Revell wrote: > 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? OK I have resolved this by moving prefix from the install line to the ./configure line. Lee