From 32b0539c61f532e3905450db9e93ec47f60ef1ad Mon Sep 17 00:00:00 2001
From: Adam Mercer <ram@macports.org>
Date: Wed, 22 Jun 2016 07:38:29 -0500
Subject: [PATCH] science/ldas-tools: disable use of -Werror flag
this allows the port to build on El Capitan, and higher
---
science/ldas-tools/Portfile | 5 ++++-
science/ldas-tools/files/patch-disable-Werror.diff | 20 ++++++++++++++++++++
2 files changed, 24 insertions(+), 1 deletion(-)
create mode 100644 science/ldas-tools/files/patch-disable-Werror.diff
diff --git a/science/ldas-tools/Portfile b/science/ldas-tools/Portfile
index 1020ca0..9b26e8a 100644
a
|
b
|
checksums rmd160 54dec09d6d9d3e55c881af7574226f2d640a5e96 \ |
20 | 20 | sha256 17b9514c8aa2092f70f7d8c7315a7d46008a285d47b730ad2d7a8eb2c89e9a36 |
21 | 21 | |
22 | 22 | patchfiles patch-libraries-ldastoolsal-src-AtExit.cc.diff \ |
23 | | patch-libraries-ldastoolsal-src-TaskThread.cc.diff |
| 23 | patch-libraries-ldastoolsal-src-TaskThread.cc.diff \ |
| 24 | patch-disable-Werror.diff |
| 25 | |
| 26 | use_autoreconf yes |
24 | 27 | |
25 | 28 | configure.args --disable-silent-rules \ |
26 | 29 | --with-optimization=high \ |
diff --git a/science/ldas-tools/files/patch-disable-Werror.diff b/science/ldas-tools/files/patch-disable-Werror.diff
new file mode 100644
index 0000000..7a011d4
-
|
+
|
|
| 1 | --- config/autotools/m4/programs.m4 |
| 2 | +++ config/autotools/m4/programs.m4 |
| 3 | @@ -118,7 +118,7 @@ |
| 4 | dnl ----------------------------------------------------------------- |
| 5 | dnl Handling of warnings |
| 6 | dnl ----------------------------------------------------------------- |
| 7 | - CFLAGS_FATAL_WARNINGS="-Werror" |
| 8 | + CFLAGS_FATAL_WARNINGS="" |
| 9 | CFLAGS_PEDANTIC="-pedantic -Wno-long-long" |
| 10 | dnl ................................................................. |
| 11 | dnl C |
| 12 | @@ -351,7 +351,7 @@ |
| 13 | dnl ----------------------------------------------------------------- |
| 14 | dnl Handling of warnings |
| 15 | dnl ----------------------------------------------------------------- |
| 16 | - CXXFLAGS_FATAL_WARNINGS="-Werror" |
| 17 | + CXXFLAGS_FATAL_WARNINGS="" |
| 18 | CXXFLAGS_PEDANTIC="-pedantic -Wno-long-long " |
| 19 | dnl ................................................................. |
| 20 | dnl C++ |