mmc-utils: don't set -D_FORTIFY_SOURCE in Makefile, take 2
[feed/packages.git] / utils / mmc-utils / patches / 001-properly-set-fortify-source-in-makefile.patch
index 4a35b959b17545b4703c79a0fec02f34bd29cc25..1a2081335a4f5ad0c0789e2f8b6082af4d659255 100644 (file)
@@ -1,11 +1,9 @@
-Index: mmc-utils-f4eb241519f8d500ce6068a70d2389be39ac5189/Makefile
-===================================================================
---- mmc-utils-f4eb241519f8d500ce6068a70d2389be39ac5189.orig/Makefile
-+++ mmc-utils-f4eb241519f8d500ce6068a70d2389be39ac5189/Makefile
+--- a/Makefile
++++ b/Makefile
 @@ -1,5 +1,5 @@
  CC ?= gcc
 -AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2
-+AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
++AM_CFLAGS = -D_FILE_OFFSET_BITS=64
  CFLAGS ?= -g -O2
  objects = \
        mmc.o \