projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: build example SO when PIE is enabled
[lttng-ust.git]
/
doc
/
examples
/
demo
/
Makefile
diff --git
a/doc/examples/demo/Makefile
b/doc/examples/demo/Makefile
index 27e4146012ab02a40051f80b858846e6529a611d..bb7fc17368202b8bfbc5c1fd022c6711a61347fe 100644
(file)
--- a/
doc/examples/demo/Makefile
+++ b/
doc/examples/demo/Makefile
@@
-14,7
+14,6
@@
#
# This makefile is purposefully kept simple to support GNU and BSD make.
#
# This makefile is purposefully kept simple to support GNU and BSD make.
-CC = gcc
LIBS = -ldl # On Linux
#LIBS = -lc # On BSD
LOCAL_CPPFLAGS += -I.
LIBS = -ldl # On Linux
#LIBS = -lc # On BSD
LOCAL_CPPFLAGS += -I.
@@
-22,31
+21,31
@@
LOCAL_CPPFLAGS += -I.
all: demo lttng-ust-provider-ust-tests-demo.so lttng-ust-provider-ust-tests-demo3.so
tp.o: tp.c ust_tests_demo.h
all: demo lttng-ust-provider-ust-tests-demo.so lttng-ust-provider-ust-tests-demo3.so
tp.o: tp.c ust_tests_demo.h
- $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) \
- $(
AM_
CFLAGS) -fpic -c -o $@ $<
+ $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(
AM_
CFLAGS) $(AM_CPPFLAGS) \
+ $(CFLAGS) -fpic -c -o $@ $<
tp2.o: tp2.c ust_tests_demo2.h
tp2.o: tp2.c ust_tests_demo2.h
- $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) \
- $(
AM_
CFLAGS) -fpic -c -o $@ $<
+ $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(
AM_
CFLAGS) $(AM_CPPFLAGS) \
+ $(CFLAGS) -fpic -c -o $@ $<
lttng-ust-provider-ust-tests-demo.so: tp.o tp2.o
lttng-ust-provider-ust-tests-demo.so: tp.o tp2.o
- $(CC) -
shared -Wl,--no-as-needed -o $@ $(LDFLAGS) $(
CFLAGS) \
- $(AM_LDFLAGS) $(
AM_CFLAGS) -llttng-ust tp.o tp2.o
+ $(CC) -
Wl,--no-as-needed -o $@ $(LDFLAGS) $(AM_
CFLAGS) \
+ $(AM_LDFLAGS) $(
CFLAGS) -shared -fpic tp.o tp2.o $(LIBS) -llttng-ust
tp3.o: tp3.c ust_tests_demo3.h
tp3.o: tp3.c ust_tests_demo3.h
- $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) \
- $(
AM_
CFLAGS) -fpic -c -o $@ $<
+ $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(
AM_
CFLAGS) $(AM_CPPFLAGS) \
+ $(CFLAGS) -fpic -c -o $@ $<
lttng-ust-provider-ust-tests-demo3.so: tp3.o
lttng-ust-provider-ust-tests-demo3.so: tp3.o
- $(CC) -
shared -Wl,--no-as-needed -o $@ $(LDFLAGS) $(
CFLAGS) \
- $(AM_LDFLAGS) $(
AM_CFLAGS) -llttng-ust tp3.o
+ $(CC) -
Wl,--no-as-needed -o $@ $(LDFLAGS) $(AM_
CFLAGS) \
+ $(AM_LDFLAGS) $(
CFLAGS) -shared -fpic tp3.o $(LIBS) -llttng-ust
demo.o: demo.c
demo.o: demo.c
- $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) \
- $(
AM_
CFLAGS) -c -o $@ $<
+ $(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(
AM_
CFLAGS) $(AM_CPPFLAGS) \
+ $(CFLAGS) -c -o $@ $<
demo: demo.o
demo: demo.o
- $(CC) $(LDFLAGS) $(
CFLAGS) $(AM_LDFLAGS) $(AM_
CFLAGS) \
+ $(CC) $(LDFLAGS) $(
AM_CFLAGS) $(AM_LDFLAGS) $(
CFLAGS) \
-o $@ demo.o $(LIBS)
.PHONY: clean
-o $@ demo.o $(LIBS)
.PHONY: clean
This page took
0.024717 seconds
and
4
git commands to generate.