openbsd-ports/devel/libexecinfo/patches/patch-examples_Makefile
sthen cdacd3bd99 switch the libexecinfo port to use marco's libbacktrace, sources modified
to produce a library named libexecinfo.so.XX, avoiding the need to patch a
bunch of places where it's used in other ports. with help from robert@
2011-11-14 19:14:18 +00:00

24 lines
769 B
Plaintext

$OpenBSD: patch-examples_Makefile,v 1.1 2011/11/14 19:14:18 sthen Exp $
we renamed the library to execinfo
--- examples/Makefile.orig Mon May 2 19:39:02 2011
+++ examples/Makefile Sat Nov 12 21:04:49 2011
@@ -1,6 +1,6 @@
# $backtrace: Makefile,v 1.6 2011/05/02 17:39:02 dhill Exp $
-LOCALBASE?=/usr/local
+LOCALBASE?=${PREFIX}
PROG=backtrace_test
NOMAN=
@@ -10,7 +10,7 @@ COPTS= -O0
DEBUG+= -ggdb3
CFLAGS+= -Wall -Werror
CPPFLAGS+= -I${LOCALBASE}/include -I../../libbacktrace -I../libbacktrace
-LDFLAGS+= -L${LOCALBASE}/lib -L../../libbacktrace/obj -L../libbacktrace/ -lbacktrace
+LDFLAGS+= -L${LOCALBASE}/lib -L../../libbacktrace/obj -L../libbacktrace/ -lexecinfo
# required to print function names using the compat API
LDFLAGS+= -Wl,--export-dynamic