summaryrefslogtreecommitdiff
path: root/harmony/libexecinfo/30-linux-makefile.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-04-18 03:54:13 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-04-18 03:54:13 -0500
commit1b9fbd9e522f06d229a6016e4d045ac0de946266 (patch)
tree1fba9d43833752f346d1c251e8441ef8eb2ab6ea /harmony/libexecinfo/30-linux-makefile.patch
parent1f8bc7baadf15ef386ebb6af3dab4d318b744fd3 (diff)
downloadpackages-1b9fbd9e522f06d229a6016e4d045ac0de946266.tar.gz
packages-1b9fbd9e522f06d229a6016e4d045ac0de946266.tar.bz2
packages-1b9fbd9e522f06d229a6016e4d045ac0de946266.tar.xz
packages-1b9fbd9e522f06d229a6016e4d045ac0de946266.zip
harmony/libexecinfo: new package
Diffstat (limited to 'harmony/libexecinfo/30-linux-makefile.patch')
-rw-r--r--harmony/libexecinfo/30-linux-makefile.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/harmony/libexecinfo/30-linux-makefile.patch b/harmony/libexecinfo/30-linux-makefile.patch
new file mode 100644
index 000000000..f832adce7
--- /dev/null
+++ b/harmony/libexecinfo/30-linux-makefile.patch
@@ -0,0 +1,44 @@
+--- a/Makefile
++++ b/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