summaryrefslogtreecommitdiff
path: root/misc/rpm/patches/patch-configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'misc/rpm/patches/patch-configure.ac')
-rw-r--r--misc/rpm/patches/patch-configure.ac20
1 files changed, 16 insertions, 4 deletions
diff --git a/misc/rpm/patches/patch-configure.ac b/misc/rpm/patches/patch-configure.ac
index 9bacafe4fea..6730196a5f5 100644
--- a/misc/rpm/patches/patch-configure.ac
+++ b/misc/rpm/patches/patch-configure.ac
@@ -1,7 +1,20 @@
-$NetBSD: patch-configure.ac,v 1.3 2015/03/15 05:34:56 ryoon Exp $
+$NetBSD: patch-configure.ac,v 1.4 2017/04/23 08:18:15 adam Exp $
---- configure.ac.orig 2014-09-15 07:39:14.000000000 +0000
+Avoid -fstack-protector, it is not portable.
+Redefine MYPATH to avoid build directory references.
+Detect dirfd() and setprogname() functions.
+
+--- configure.ac.orig 2016-11-02 08:42:29.000000000 +0000
+++ configure.ac
+@@ -37,7 +37,7 @@ fi
+ AS=${AS-as}
+ AC_SUBST(AS)
+ if test "$GCC" = yes; then
+- cflags_to_try="-fno-strict-aliasing -fstack-protector -Wempty-body"
++ cflags_to_try="-fno-strict-aliasing -Wempty-body"
+ AC_MSG_CHECKING([supported compiler flags])
+ old_cflags=$CFLAGS
+ echo
@@ -84,7 +84,7 @@ dnl
if test "$cross_compiling" = "yes"; then
MYPATH=":"
@@ -11,13 +24,12 @@ $NetBSD: patch-configure.ac,v 1.3 2015/03/15 05:34:56 ryoon Exp $
fi
dnl
-@@ -547,6 +547,9 @@ AC_CHECK_FUNCS(fdatasync)
+@@ -547,6 +547,8 @@ AC_CHECK_FUNCS(fdatasync)
AC_CHECK_FUNCS(lutimes)
AC_CHECK_FUNCS(mergesort)
AC_CHECK_FUNCS(getauxval)
+AC_CHECK_FUNCS(dirfd)
+AC_CHECK_FUNCS(setprogname)
-+AC_CHECK_FUNCS(htonll)
AC_REPLACE_FUNCS(stpcpy stpncpy)