aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libexecinfo/30-linux-makefile.patch
diff options
context:
space:
mode:
authorPhilipp Andronov <filipp.andronov@gmail.com>2015-05-16 09:31:06 +0000
committerBartłomiej Piotrowski <b@bpiotrowski.pl>2015-06-19 12:06:57 +0200
commitcfd1b987c1a3fb7bba7da7a59cb2ba016ac25df7 (patch)
treea3881b0d719a9b48b657ded1bfeb45b7c666326a /testing/libexecinfo/30-linux-makefile.patch
parent3df0fba36503542dd49e7dada7ed2399e5150684 (diff)
downloadaports-cfd1b987c1a3fb7bba7da7a59cb2ba016ac25df7.tar.gz
aports-cfd1b987c1a3fb7bba7da7a59cb2ba016ac25df7.tar.bz2
aports-cfd1b987c1a3fb7bba7da7a59cb2ba016ac25df7.tar.xz
testing/libexecinfo: new aport
http://www.freshports.org/devel/libexecinfo A quick-n-dirty BSD licensed clone of the GNU libc backtrace facility. This package is a dependency of incoming MongoDB package.
Diffstat (limited to 'testing/libexecinfo/30-linux-makefile.patch')
-rw-r--r--testing/libexecinfo/30-linux-makefile.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/libexecinfo/30-linux-makefile.patch b/testing/libexecinfo/30-linux-makefile.patch
new file mode 100644
index 0000000000..3bc8927954
--- /dev/null
+++ b/testing/libexecinfo/30-linux-makefile.patch
@@ -0,0 +1,44 @@
+--- Makefile.orig
++++ Makefile
+@@ -23,24 +23,25 @@
+ # SUCH DAMAGE.
+ #
+ # $Id: Makefile,v 1.3 2004/07/19 05:19:55 sobomax Exp $
++#
++# Linux Makefile by Matt Smith <mcs@darkregion.net>, 2011/01/04
+
+-LIB= execinfo
++CC=cc
++AR=ar
++EXECINFO_CFLAGS=$(CFLAGS) -O2 -pipe -fno-strict-aliasing -std=gnu99 -fstack-protector -c
++EXECINFO_LDFLAGS=$(LDFLAGS)
+
+-SRCS= stacktraverse.c stacktraverse.h execinfo.c execinfo.h
++all: static dynamic
+
+-INCS= execinfo.h
++static:
++ $(CC) $(EXECINFO_CFLAGS) $(EXECINFO_LDFLAGS) stacktraverse.c
++ $(CC) $(EXECINFO_CFLAGS) $(EXECINFO_LDFLAGS) execinfo.c
++ $(AR) rcs libexecinfo.a stacktraverse.o execinfo.o
+
+-SHLIB_MAJOR= 1
+-SHLIB_MINOR= 0
++dynamic:
++ $(CC) -fpic -DPIC $(EXECINFO_CFLAGS) $(EXECINFO_LDFLAGS) stacktraverse.c -o stacktraverse.So
++ $(CC) -fpic -DPIC $(EXECINFO_CFLAGS) $(EXECINFO_LDFLAGS) execinfo.c -o execinfo.So
++ $(CC) -shared -Wl,-soname,libexecinfo.so.1 -o libexecinfo.so.1 stacktraverse.So execinfo.So
+
+-NOPROFILE= yes
+-
+-DPADD= ${LIBM}
+-LDADD= -lm
+-
+-#WARNS?= 4
+-
+-#stacktraverse.c: gen.py
+-# ./gen.py > stacktraverse.c
+-
+-.include <bsd.lib.mk>
++clean:
++ rm -rf *.o *.So *.a *.so