summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Hauke <mardnh@gmx.de>2018-04-01 17:36:56 +0200
committerHarald Welte <laforge@gnumonks.org>2018-04-02 11:42:55 +0200
commit5e82cb7d63f5dc0b6d4544ba299a9f8b53d42f5c (patch)
tree7e36c3ec402e40015c32d32ac45034c379714b50
parenta9b94bd8b9fc31ba80294da1d67a6261ed7856cc (diff)
misc fixes
* only link against ttcn3-dynamic when you build with ENABLE_TITAN * obey CFLAGS * fix typos
-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