summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--README.md4
2 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 7901891..5888dc8 100644
--- a/Makefile
+++ b/Makefile
@@ -3,12 +3,13 @@ LIB_OBJS = $(LIB_SRCS:.c=.o)
EXTRA_LIBS =
-CFLAGS = -Wall
-LDFLAGS=-L/usr/lib/titan -fPIC -lttcn3-dynamic
+CFLAGS += -Wall
+LDFLAGS= -fPIC
ifdef ENABLE_TITAN
EXTRA_LIBS += titan/titan.a
CFLAGS += -DENABLE_TITAN
+LDFLAGS += -L/usr/lib/titan -lttcn3-dynamic
endif
default: libudtrace.so
diff --git a/README.md b/README.md
index b98686e..f7a95b5 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ Usage
Simply build **libudtrace.so** using the **make** command, and then
start your to-be-traced program with
- LD_PRELOAD=libudtrace.os
+ LD_PRELOAD=libudtrace.so
e.g.
@@ -62,7 +62,7 @@ When data is written to the socket:
9 write W 00040000050000004403000008000000680000001c0300002c03000000000000
Where
- * *9* is the file dsecriptor on which the event happened
+ * *9* is the file descriptor on which the event happened
* *read/write* is the name of the syscall, could e.g. also be sendmsg / readv / etc.
* *R|W* is Read / Write (from the process point of view)
* followed by a hex-dump of the raw data. Only data successfully
personal git repositories of Harald Welte. Your mileage may vary