Gentoo Archives: gentoo-devhelp

From: Nathan Phillip Brink <ohnobinki@××××××××××××××.net>
To: Nikos Chantziaras <realnc@×××××.de>
Cc: gentoo-devhelp@l.g.o
Subject: Re: [gentoo-devhelp] Re: How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS?
Date: Tue, 17 May 2011 05:09:46
Message-Id: 20110517051428.GL31702@ohnopublishing.net
In Reply to: [gentoo-devhelp] Re: How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS? by Nikos Chantziaras
1 On Tue, May 17, 2011 at 07:49:23AM +0300, Nikos Chantziaras wrote:
2 > On 05/17/2011 06:48 AM, Nikos Chantziaras wrote:
3 > > But it ignores the CFLAGS/CXXFLAGS/LDFLAGS set in make.conf, and
4 > > append-cflags and append-cxxflags does nothing (-Wno-error is not used
5 > > in the resulting build.)
6 >
7 > OK, I have worse problems than just the above :-/
8 >
9 > First:
10 >
11 > g++ -o .release_build/OcelotConfig -L/usr/lib64/llvm -lpthread -lffi
12 > -ldl -lm .release_build/ocelot/tools/OcelotConfig.o -L/usr/lib
13 > -L/usr/lib64/llvm -L. -locelot
14 > /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld:
15 > cannot find -locelot
16 > collect2: ld returned 1 exit status
17 >
18 > If I ignore the above error and proceed with "scons install" anyway:
19 >
20 > ACCESS DENIED open_wr: /usr/lib/libocelot.so
21 > scons: *** [/usr/lib/libocelot.so] /usr/lib/libocelot.so: Permission denied
22 >
23 > SCons does not seem to play nicely with the package sandboxing that
24 > Gentoo uses. It tries to access /usr directly.
25 >
26 > What should I do here?
27
28 Try replacing DESTDIR="${D}" with install_path="${D}"/usr perhaps?
29 That's just a guess from examining
30 http://code.google.com/p/gpuocelot/source/browse/trunk/ocelot/SConscript
31 .
32
33 And for your first problem with CXXFLAGS, try
34
35 export OCELOT_CONFIG_FLAGS="${CXXFLAGS}"
36
37 That probably still leaves LDFLAGS which should probably be set in LINKFLAGS.
38
39 --
40 binki
41
42 Look out for missing or extraneous apostrophes!

Replies

Subject Author
[gentoo-devhelp] Re: How do I make scons use correct CFLAGS/CXXFLAGS/LDFLAGS? Nikos Chantziaras <realnc@×××××.de>