quota-4.03-dont_override_cflags.patch 838 B

1234567891011121314151617181920212223
  1. commit 776757a23e9930588950c7fcbc7827ec7a3e51c4
  2. Author: Tomáš Chvátal <tchvatal@suse.com>
  3. Date: Mon Jan 4 15:48:19 2016 +0100
  4. Do not accidentaly override commandline passed CFLAGS.
  5. Signed-off-by: Tomáš Chvátal <tchvatal@suse.com>
  6. Signed-off-by: Jan Kara <jack@suse.cz>
  7. diff --git a/configure.ac b/configure.ac
  8. index 3ba1386..1552c15 100644
  9. --- a/configure.ac
  10. +++ b/configure.ac
  11. @@ -53,7 +53,7 @@ AS_IF([test "x${prefix}" = "xNONE"], [
  12. # ================
  13. # Check for cflags
  14. # ================
  15. -CFLAGS="-D_GNU_SOURCE -Wall -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
  16. +CFLAGS="$CFLAGS -D_GNU_SOURCE -Wall -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
  17. AC_ARG_ENABLE([werror],
  18. [AS_HELP_STRING([--enable-werror], [Treat all warnings as errors, useful for development])],
  19. [enable_werror="$enableval"],