Project

General

Profile

Actions

Bug #537

closed

make CFLAGS=-g breaks examples build

Added by Mathieu Desnoyers almost 11 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
High
Target version:
Start date:
05/17/2013
Due date:
% Done:

100%

Estimated time:

Description

cd doc/examples/easy-ust
compudj@thinkos:~/git/lttng-ust/doc/examples/easy-ust$ (git:master $)> make
gcc -I. -c -o tp.o tp.c
gcc -o sample sample.o tp.o -ldl -llttng-ust
compudj@thinkos:~/git/lttng-ust/doc/examples/easy-ust$ (git:master $)> make clean
rm -f .html
rm -f *.o sample
compudj@thinkos:~/git/lttng-ust/doc/examples/easy-ust$ (git:master $)> make CFLAGS=-g
gcc -g -c -o sample.o sample.c
gcc -g -c -o tp.o tp.c
In file included from sample_component_provider.h:143:0,
from tp.c:33:
/usr/local/include/lttng/tracepoint-event.h:60:28: fatal error: ./sample_component_provider.h: No such file or directory
compilation terminated.
make: *
* [tp.o] Error 1

for some reason, the CFLAGS += have no effect when a CFLAGS is specified on the command line.

Actions

Also available in: Atom PDF