diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-12-24 14:11:38 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-12-24 14:11:38 +0000 |
commit | de49812990871e1705b64051c35161d5e6400269 (patch) | |
tree | 5e1e8fcb0ff4579dbd22a1bfee28a6b97dc8aaeb /dev-libs/libverto/files/libverto-verify-cflags.patch | |
parent | 536c3711867ec947c1738f2c4b96f22e4863322d (diff) |
gentoo resync : 24.12.2018
Diffstat (limited to 'dev-libs/libverto/files/libverto-verify-cflags.patch')
-rw-r--r-- | dev-libs/libverto/files/libverto-verify-cflags.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-libs/libverto/files/libverto-verify-cflags.patch b/dev-libs/libverto/files/libverto-verify-cflags.patch new file mode 100644 index 000000000000..dce747239dc7 --- /dev/null +++ b/dev-libs/libverto/files/libverto-verify-cflags.patch @@ -0,0 +1,26 @@ +From 5bbe8b009d6daa809f679fd1d25c270abba468b4 Mon Sep 17 00:00:00 2001 +From: Robbie Harwood <rharwood@redhat.com> +Date: Wed, 31 Jan 2018 17:52:39 +0100 +Subject: [PATCH] Verify flags prior to adding them to CFLAGS, not after + +--- + configure.ac | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index b7b5908..4084965 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -8,8 +8,11 @@ m4_ifdef([AC_USE_SYSTEM_EXTENSIONS], + [AC_GNU_SOURCE]) + + AC_PROG_CC_C99 ++ + for flag in -Wall -Wextra; do +- AC_TRY_COMPILE([], [return 0;], [CFLAGS="$CFLAGS $flag"],) ++ OLD_CFLAGS=$CFLAGS ++ CFLAGS="$CFLAGS $flag" ++ AC_TRY_COMPILE(, [return 0;], [], [CFLAGS=$OLD_CFLAGS]) + done + + AC_CANONICAL_SYSTEM |