From mboxrd@z Thu Jan 1 00:00:00 1970 From: thomas.petazzoni@free-electrons.com (Thomas Petazzoni) Date: Mon, 26 Aug 2013 16:22:49 +0200 Subject: [lttng-dev] [LTTNG][LTTng-ust] "Out of system" building patches. In-Reply-To: References: <1377160051-12449-1-git-send-email-jimmy.durand.wesolowski@gmail.com> <20130822125523.GB26852@Krystal> Message-ID: <20130826162249.4b450edb@skate> Dear Jimmy Durand, On Sat, 24 Aug 2013 17:34:16 +0200, Jimmy Durand wrote: > > What feature is this patchset adding that is not covered by the usual > > approach ? Or what is it fixing ? > > > Actually, this is enough for a regular system build, but if you wish to > build > it in another directory with --prefix=, which is the case for cross- > compiling, this not enough. When I hear someone say that --prefix=... is needed for cross-compilation, it's usually an indication that the cross-compilation is done incorrectly. --prefix indicates the location where the software will be *executed* on the target. So even when you're cross-compiling, the default of --prefix=/usr or --prefix=/usr/local is fine. All what you need to do is pass DESTDIR=/your/temporary/location/on/your/build/machine when doing make install. Buildroot (http://buildroot.org), which some of your colleagues at OpenWide are using, does cross-compile LTTng without such changes to LTTng build system. Best regards, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com