[lttng-dev] [LTTNG][LTTng-ust] "Out of system" building patches.

Jimmy Durand Wesolowski jimmy.durand.wesolowski at gmail.com
Mon Aug 26 11:13:07 EDT 2013


2013/8/26 Thomas Petazzoni <thomas.petazzoni at free-electrons.com>

> Dear Jimmy Durand Wesolowski,

Dear Thomas Petazzoni,



> On Mon, 26 Aug 2013 09:43:49 +0200, Jimmy Durand Wesolowski wrote:
>
> > Here is a quick test, without any of my modifications. I had to pass both
> > CFLAGS and LDFLAGS to "./configure", as said earlier, which can be
> > considered
> > a normal process:
> > CFLAGS="-I<URCU_BUILD_PATH>/include" \
> >   CPPFLAGS="-I<URCU_BUILD_PATH>/include" \
> >   LDFLAGS="-L<URCU_BUILD_PATH>/lib" \
> >   ./configure --prefix=${PWD}/build
>
> As said previously, if you're cross-compiling, doing
> --prefix=${PWD}/build is completely wrong. --prefix is the directory
> where the software will be located when executed on the target, not the
> location where the software will be installed when doing 'make install'.
>
Thank you for this information, I shamefully did not remember this, and I
am a buildroot user myself... I will not be using --prefix for cross-
compilation anymore, thank you.

Nevertheless, I did not say that LTTng cannot be cross-compiled without
these changes, but it needs flags at the 'configure' step, and at the
'make' one, as I said earlier, which DESTDIR will not correct, since the
the flags are not given to the sub-Makefiles.


Thank you for the correction,
-- 
Jimmy Durand Wesolowski
OpenWide R&D engineer
OneAccess
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20130826/8cb7bbda/attachment.html>


More information about the lttng-dev mailing list