From mboxrd@z Thu Jan 1 00:00:00 1970 From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers) Date: Mon, 26 Aug 2013 11:27:59 -0400 Subject: [lttng-dev] [LTTNG][LTTng-ust] "Out of system" building patches. In-Reply-To: <20130826151917.GA16924@Krystal> References: <1377160051-12449-1-git-send-email-jimmy.durand.wesolowski@gmail.com> <20130822125523.GB26852@Krystal> <20130824175909.GA12409@Krystal> <20130826162407.1996f085@skate> <20130826151147.GA16659@Krystal> <20130826151917.GA16924@Krystal> Message-ID: <20130826152759.GA17057@Krystal> * Mathieu Desnoyers (mathieu.desnoyers at efficios.com) wrote: > * Jimmy Durand Wesolowski (jimmy.durand.wesolowski at gmail.com) wrote: > > 2013/8/26 Mathieu Desnoyers > > > > > Now I just have to figure out how to teach lttng-gen-tp about CPPFLAGS > > > :-/ > > > > > > > My patch is correcting this, and the new version does take your > > comment into account. > > Actually, I just pushed a fix for this into master (I had to test all > this myself to understand what happens): > > commit 9ec23f2e52b3b0bd8b80afbe2e8e8ae1ab222c6b > Author: Mathieu Desnoyers > Date: Mon Aug 26 11:14:56 2013 -0400 > > Fix: doc/examples cross-build > > We need to pass automake's CPPFLAGS and LDFLAGS to examples. Add CFLAGS > too for completeness. > > Signed-off-by: Mathieu Desnoyers > > We still have issues with lttng-gen-tp though: I'm looking for a way to > change its Makefile so it adds "AM_CPPFLAGS" to the CFLAGS passed to the > compiler. Ideas ? I got it to work. See those commits in master: commit 256175cffb00b15543bd49a4268e6c528bd51fce Author: Mathieu Desnoyers Date: Mon Aug 26 11:26:09 2013 -0400 doc/examples/gen-tp: pass automake CPPFLAGS/CFLAGS/LDFLAGS Fix cross-build. Signed-off-by: Mathieu Desnoyers commit 170423b056ecdef441820a54be350605e4dc8951 Author: Mathieu Desnoyers Date: Mon Aug 26 11:24:26 2013 -0400 tools/lttng-gen-tp: honor CPPFLAGS and LDFLAGS Signed-off-by: Mathieu Desnoyers Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com