nixpkgs/pkgs/development/libraries/accelio/cflags.patch

22 lines
851 B
Diff
Raw Normal View History

2015-04-21 18:31:11 +01:00
diff --git a/configure.ac b/configure.ac
2015-04-22 19:13:26 +01:00
index 6ce6b6b..72d2e65 100644
2015-04-21 18:31:11 +01:00
--- a/configure.ac
+++ b/configure.ac
2015-04-22 19:13:26 +01:00
@@ -110,14 +110,10 @@ AC_MSG_RESULT([$enable_debug])
if test "$enable_debug" = "yes"; then
AC_DEFINE([DEBUG],[],[Debug Mode])
- AM_CFLAGS="$AM_CFLAGS -g -ggdb -Wall -Werror -Wdeclaration-after-statement \
- -Wsign-compare -Wc++-compat \
- -fno-omit-frame-pointer -O0 -D_REENTRANT -D_GNU_SOURCE"
+ AM_CFLAGS="$AM_CFLAGS -g -ggdb -fno-omit-frame-pointer -O0 -D_REENTRANT -D_GNU_SOURCE"
2015-04-21 18:31:11 +01:00
else
AC_DEFINE([NDEBUG],[],[No-debug Mode])
- AM_CFLAGS="$AM_CFLAGS -g -ggdb -Wall -Werror -Wpadded -Wdeclaration-after-statement \
2015-04-22 19:13:26 +01:00
- -Wsign-compare -Wc++-compat \
2015-04-21 18:31:11 +01:00
- -O3 -D_REENTRANT -D_GNU_SOURCE"
+ AM_CFLAGS="$AM_CFLAGS -O3 -D_REENTRANT -D_GNU_SOURCE"
fi
AC_CACHE_CHECK(whether ld accepts --version-script, ac_cv_version_script,