remove_werror.patch 978 B

12345678910111213141516171819202122232425
  1. --- open-iscsi-2.1.1/libopeniscsiusr/Makefile.orig 2020-02-26 20:07:13.000000000 +0100
  2. +++ open-iscsi-2.1.1/libopeniscsiusr/Makefile 2020-07-14 18:13:07.144477155 +0200
  3. @@ -44,7 +44,7 @@
  4. OBJS = context.o misc.o session.o sysfs.o iface.o idbm.o node.o default.o
  5. CFLAGS ?= -O2 -g
  6. -CFLAGS += -Wall -Werror -Wextra -fvisibility=hidden -fPIC
  7. +CFLAGS += -Wall -Wextra -fvisibility=hidden -fPIC
  8. CFLAGS += $(shell $(PKG_CONFIG) --cflags libkmod)
  9. LDFLAGS += $(shell $(PKG_CONFIG) --libs libkmod)
  10. --- open-iscsi-2.1.1/usr/Makefile 2020-02-26 20:07:13.000000000 +0100
  11. +++ open-iscsi-2.1.1/usr/Makefile 2020-07-14 17:56:48.298477155 +0200
  12. @@ -35,7 +35,7 @@
  13. PKG_CONFIG = /usr/bin/pkg-config
  14. CFLAGS ?= -O2 -g
  15. -WARNFLAGS ?= -Wall -Wextra -Werror -Wstrict-prototypes -fno-common
  16. +WARNFLAGS ?= -Wall -Wextra -Wstrict-prototypes -fno-common
  17. CFLAGS += $(WARNFLAGS) -I../include -I. -D_GNU_SOURCE \
  18. -I$(TOPDIR)/libopeniscsiusr
  19. CFLAGS += $(shell $(PKG_CONFIG) --cflags libkmod)