diff options
author | Mattias Andrée <maandree@kth.se> | 2019-04-13 00:28:53 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2019-04-13 00:28:53 +0200 |
commit | aa108230cc11eadb37443afe1ee51e6e88baddca (patch) | |
tree | 8ccedee39681ce49ffc170b15b68567b0b7217f7 | |
parent | Fix makefile (diff) | |
download | liberror-backtrace-aa108230cc11eadb37443afe1ee51e6e88baddca.tar.gz liberror-backtrace-aa108230cc11eadb37443afe1ee51e6e88baddca.tar.bz2 liberror-backtrace-aa108230cc11eadb37443afe1ee51e6e88baddca.tar.xz |
Fix
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | README | 9 | ||||
-rw-r--r-- | config.mk | 2 | ||||
-rw-r--r-- | internal.h | 2 |
3 files changed, 9 insertions, 4 deletions
@@ -1,5 +1,10 @@ Companion library to liberror. It enables backtrace support for liberror. -The library need only be linked, there is no header -file or any functions the user should use. +The library need only be linked, together with -ldw +(from libelf) and -lunwind (libunwind), there is no +header file or any functions the user should use. +Note however, for static linking you may need +-Wl,--whole-archive before and -Wl,--no-whole-archive +after the library when linking; for dynamic linking, +put -lerror-backtrace before -lerror. @@ -3,4 +3,4 @@ MANPREFIX = $(PREFIX)/share/man CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 CFLAGS = -std=c99 -Wall -pedantic -LDFLAGS = -s -lunwind -ldw +LDFLAGS = -s -lunwind -ldw -lerror @@ -22,4 +22,4 @@ struct liberror_backtrace { void liberror_print_backtrace(struct liberror_error *, FILE *, const char *); -int liberror_save_backtrace_(struct liberror_error *); +int liberror_save_backtrace(struct liberror_error *); |