From fe7fce2ad1cbf374be1a1b99af27eff733f639a0 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 3 May 2017 11:05:12 +0200 Subject: [PATCH] 7.1.1-1 --- gcc.spec | 2 ++ nvptx-tools-glibc.patch | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 nvptx-tools-glibc.patch diff --git a/gcc.spec b/gcc.spec index 01369d8..ab21ec4 100644 --- a/gcc.spec +++ b/gcc.spec @@ -235,6 +235,7 @@ Patch11: gcc7-Wno-format-security.patch Patch1000: nvptx-tools-no-ptxas.patch Patch1001: nvptx-tools-build.patch +Patch1002: nvptx-tools-glibc.patch # On ARM EABI systems, we do want -gnueabi to be part of the # target triple. @@ -824,6 +825,7 @@ package or when debugging this package. cd nvptx-tools-%{nvptx_tools_gitrev} %patch1000 -p1 -b .nvptx-tools-no-ptxas~ %patch1001 -p1 -b .nvptx-tools-build~ +%patch1002 -p1 -b .nvptx-tools-glibc~ cd .. %if 0%{?_enable_debug_packages} diff --git a/nvptx-tools-glibc.patch b/nvptx-tools-glibc.patch new file mode 100644 index 0000000..4b50114 --- /dev/null +++ b/nvptx-tools-glibc.patch @@ -0,0 +1,32 @@ +--- nvptx-tools/configure.ac.jj 2017-01-13 12:48:31.000000000 +0100 ++++ nvptx-tools/configure.ac 2017-05-03 10:26:57.076092259 +0200 +@@ -66,6 +66,8 @@ CPPFLAGS=$save_CPPFLAGS + LDFLAGS=$save_LDFLAGS + LIBS=$save_LIBS + ++AC_CHECK_DECLS(getopt) ++ + AC_CONFIG_SUBDIRS([libiberty]) + AC_CONFIG_FILES([Makefile dejagnu.exp]) + AC_OUTPUT +--- nvptx-tools/configure.jj 2017-01-13 12:48:54.000000000 +0100 ++++ nvptx-tools/configure 2017-05-03 10:27:13.503876809 +0200 +@@ -3963,6 +3963,18 @@ CPPFLAGS=$save_CPPFLAGS + LDFLAGS=$save_LDFLAGS + LIBS=$save_LIBS + ++ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default" ++if test "x$ac_cv_have_decl_getopt" = x""yes; then : ++ ac_have_decl=1 ++else ++ ac_have_decl=0 ++fi ++ ++cat >>confdefs.h <<_ACEOF ++#define HAVE_DECL_GETOPT $ac_have_decl ++_ACEOF ++ ++ + + + subdirs="$subdirs libiberty"