summaryrefslogtreecommitdiff
path: root/package/miredo/patches
diff options
context:
space:
mode:
Diffstat (limited to 'package/miredo/patches')
-rw-r--r--package/miredo/patches/patch-admin_ltmain_sh11
-rw-r--r--package/miredo/patches/patch-configure_ac25
2 files changed, 25 insertions, 11 deletions
diff --git a/package/miredo/patches/patch-admin_ltmain_sh b/package/miredo/patches/patch-admin_ltmain_sh
deleted file mode 100644
index af6e9f095..000000000
--- a/package/miredo/patches/patch-admin_ltmain_sh
+++ /dev/null
@@ -1,11 +0,0 @@
---- miredo-1.2.3.orig/admin/ltmain.sh 2009-12-10 00:55:19.000000000 +0100
-+++ miredo-1.2.3/admin/ltmain.sh 2011-01-16 00:19:27.000000000 +0100
-@@ -4765,7 +4765,7 @@ func_mode_link ()
- # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
- # @file GCC response files
- -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
-- -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
-+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto)
- func_quote_for_eval "$arg"
- arg="$func_quote_for_eval_result"
- func_append compile_command " $arg"
diff --git a/package/miredo/patches/patch-configure_ac b/package/miredo/patches/patch-configure_ac
new file mode 100644
index 000000000..f2e24d7b4
--- /dev/null
+++ b/package/miredo/patches/patch-configure_ac
@@ -0,0 +1,25 @@
+--- miredo-1.2.6.orig/configure.ac 2013-05-23 17:51:41.000000000 +0200
++++ miredo-1.2.6/configure.ac 2013-11-08 16:09:54.000000000 +0100
+@@ -149,12 +149,17 @@ LIBS="$LIBS_save"
+ AS_MESSAGE([checking optional features...])
+
+ # POSIX capabilities
++AC_ARG_WITH(libcap,
++ [AS_HELP_STRING(--with-libcap,
++ [use POSIX capabilities (default auto)])])
+ LIBCAP=""
+-AC_CHECK_HEADERS([sys/capability.h], [
+- AC_CHECK_LIB(cap, cap_set_proc, [
+- LIBCAP="-lcap"
+- AC_DEFINE(HAVE_LIBCAP, 1,
+- [Define to 1 if you have the `cap' library (-lcap).])
++AS_IF([test "x${with_libcap}" != "xno"], [
++ AC_CHECK_HEADERS([sys/capability.h], [
++ AC_CHECK_LIB(cap, cap_set_proc, [
++ LIBCAP="-lcap"
++ AC_DEFINE(HAVE_LIBCAP, 1,
++ [Define to 1 if you have the `cap' library (-lcap).])
++ ])
+ ])
+ ])
+ AC_SUBST(LIBCAP)