notify_cflags_set.patch 739 B

123456789101112131415161718192021222324
  1. From c212fc932a63fe11289f7fc359e9364c25d27d23 Mon Sep 17 00:00:00 2001
  2. From: nick87720z <nick87720z@gmail.com>
  3. Date: Fri, 16 Oct 2020 05:09:40 +0500
  4. Subject: [PATCH] configure.ac: NOTIFY_CFLAGS is not set
  5. This sort of assignment, +=, works in makefiles, but not in shell scripts.
  6. ---
  7. configure.ac | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/configure.ac b/configure.ac
  10. index 0dbba26..48a3ee5 100644
  11. --- a/configure.ac
  12. +++ b/configure.ac
  13. @@ -86,7 +86,7 @@ fi
  14. if test "x${notify}" = xyes; then
  15. # Check for libnotify
  16. PKG_CHECK_MODULES([NOTIFY], [libnotify >= 0.5.0])
  17. -NOTIFY_CFLAGS+="-DCOMPILEWITH_NOTIFY"
  18. +NOTIFY_CFLAGS="${NOTIFY_CFLAGS} -DCOMPILEWITH_NOTIFY"
  19. AC_SUBST(NOTIFY_CFLAGS)
  20. AC_SUBST(NOTIFY_LIBS)
  21. fi