Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-devhelp
Navigation:
Lists: gentoo-devhelp: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: Nikos Chantziaras <realnc@...>
From: Nathan Phillip Brink <ohnobinki@...>
Subject: Re: Re: How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS?
Date: Tue, 17 May 2011 01:14:29 -0400
On Tue, May 17, 2011 at 07:49:23AM +0300, Nikos Chantziaras wrote:
> On 05/17/2011 06:48 AM, Nikos Chantziaras wrote:
> > But it ignores the CFLAGS/CXXFLAGS/LDFLAGS set in make.conf, and
> > append-cflags and append-cxxflags does nothing (-Wno-error is not used
> > in the resulting build.)
> 
> OK, I have worse problems than just the above :-/
> 
> First:
> 
> g++ -o .release_build/OcelotConfig -L/usr/lib64/llvm -lpthread -lffi 
> -ldl -lm .release_build/ocelot/tools/OcelotConfig.o -L/usr/lib 
> -L/usr/lib64/llvm -L. -locelot
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: 
> cannot find -locelot
> collect2: ld returned 1 exit status
> 
> If I ignore the above error and proceed with "scons install" anyway:
> 
> ACCESS DENIED  open_wr:      /usr/lib/libocelot.so
> scons: *** [/usr/lib/libocelot.so] /usr/lib/libocelot.so: Permission denied
> 
> SCons does not seem to play nicely with the package sandboxing that 
> Gentoo uses. It tries to access /usr directly.
> 
> What should I do here?

Try replacing DESTDIR="${D}" with install_path="${D}"/usr perhaps?
That's just a guess from examining
http://code.google.com/p/gpuocelot/source/browse/trunk/ocelot/SConscript
.

And for your first problem with CXXFLAGS, try

export OCELOT_CONFIG_FLAGS="${CXXFLAGS}"

That probably still leaves LDFLAGS which should probably be set in LINKFLAGS.

-- 
binki

Look out for missing or extraneous apostrophes!
Attachment:
pgpvOGhnPPBk8.pgp (PGP signature)
Replies:
Re: How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS?
-- Nikos Chantziaras
References:
How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS?
-- Nikos Chantziaras
Re: How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS?
-- Nikos Chantziaras
Navigation:
Lists: gentoo-devhelp: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS?
Next by thread:
Re: How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS?
Previous by date:
Re: How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS?
Next by date:
Re: How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS?


Updated Jun 03, 2012

Summary: Archive of the gentoo-devhelp mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.