a2jmidid: fix musl build, nopie=yes
This commit is contained in:
parent
0f11743fef
commit
32790404b3
|
@ -0,0 +1,29 @@
|
|||
--- sigsegv.c.orig 2016-06-06 15:56:47.355074711 +0200
|
||||
+++ sigsegv.c 2016-06-06 15:55:40.740071274 +0200
|
||||
@@ -28,7 +28,9 @@
|
||||
#include <signal.h>
|
||||
#include <ucontext.h>
|
||||
#include <dlfcn.h>
|
||||
+#if defined(__GLIBC__)
|
||||
#include <execinfo.h>
|
||||
+#endif
|
||||
#include <errno.h>
|
||||
#ifndef NO_CPP_DEMANGLE
|
||||
//#include <cxxabi.h>
|
||||
@@ -145,13 +147,15 @@
|
||||
ip = bp[1];
|
||||
bp = (void**)bp[0];
|
||||
}
|
||||
-#else
|
||||
+#elif defined(__GLIBC__)
|
||||
a2j_error("Stack trace (non-dedicated):");
|
||||
sz = backtrace(bt, 20);
|
||||
strings = backtrace_symbols(bt, sz);
|
||||
|
||||
for(i = 0; i < sz; ++i)
|
||||
a2j_error("%s", strings[i]);
|
||||
+#else
|
||||
+ a2j_error("Stack trace unavailable");
|
||||
#endif
|
||||
a2j_error("End of stack trace");
|
||||
exit (-1);
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'a2jmidid'
|
||||
pkgname=a2jmidid
|
||||
version=8
|
||||
revision=4
|
||||
revision=5
|
||||
build_style=waf
|
||||
hostmakedepends="python pkg-config"
|
||||
makedepends="alsa-lib-devel jack-devel dbus-devel"
|
||||
|
@ -11,6 +11,7 @@ homepage="http://home.gna.org/a2jmidid/"
|
|||
license="GPL-2"
|
||||
distfiles="http://download.gna.org/${pkgname}/${pkgname}-${version}.tar.bz2"
|
||||
checksum=2a9635f62aabc59edb54ada07048dd47e896b90caff94bcee710d3582606f55f
|
||||
nopie=yes
|
||||
|
||||
do_configure() {
|
||||
python waf configure --prefix=/usr
|
||||
|
|
Loading…
Reference in New Issue