mirror of
https://git.freebsd.org/ports.git
synced 2025-06-23 13:40:34 -04:00
LTTng stands for Linux Trace Toolkit: next generation. It's a modern toolkit for tracing Linux (And now FreeBSD, only userspace now) programs. PR: 216142 Submitted by: mmokhi Reported by: mmokhi Reviewed by: feld, mat Approved by: feld, mat (mentors) Differential Revision: https://reviews.freebsd.org/D9200
25 lines
703 B
Text
25 lines
703 B
Text
--- doc/examples/hello-static-lib/Makefile.orig 2016-08-08 21:25:36 UTC
|
|
+++ doc/examples/hello-static-lib/Makefile
|
|
@@ -14,19 +14,15 @@
|
|
#
|
|
# This makefile is purposefully kept simple to support GNU and BSD make.
|
|
|
|
-ifdef AM_CC
|
|
- CC = $(AM_CC)
|
|
-endif
|
|
-
|
|
LOCAL_CPPFLAGS += -I.
|
|
-LIBS = -ldl -llttng-ust # On Linux
|
|
-#LIBS = -lc -llttng-ust # On BSD
|
|
+#LIBS = -ldl -llttng-ust # On Linux
|
|
+LIBS = -llttng-ust # On FreeBSD
|
|
|
|
all: hello
|
|
|
|
lttng-ust-provider-hello.o: tp.c ust_tests_hello.h
|
|
$(CC) $(CPPFLAGS) $(LOCAL_CPPFLAGS) $(CFLAGS) $(AM_CPPFLAGS) \
|
|
- $(AM_CFLAGS) -c -o $@ $<
|
|
+ $(AM_CFLAGS) -c -o $@ tp.c
|
|
|
|
lttng-ust-provider-hello.a: lttng-ust-provider-hello.o
|
|
ar -rc $@ lttng-ust-provider-hello.o
|