Marcus Meissner
08115bb0ff
- Update to latest upstream version 1.0.44 (FATE#316717): * Add sheepdog support * Add rbd support * Update iSER support * Add support for iSCSI NOP-OUT * SPC/SBC fixes * iSCSI fixes * Fixup persistent group reservations - Removed tgt-mgmt-fixed-m-system-o-delete-handling.patch: Merged with upstream - Removed tgt-1.0.28.tar.bz2 - Added tgt-1.0.44.tar.bz2 OBS-URL: https://build.opensuse.org/request/show/224235 OBS-URL: https://build.opensuse.org/package/show/Base:System/tgt?expand=0&rev=22
38 lines
998 B
Plaintext
38 lines
998 B
Plaintext
From bcaad0432c18a9a792fce4b10e5a0e7014461dc5 Mon Sep 17 00:00:00 2001
|
|
From: Hannes Reinecke <hare@suse.de>
|
|
Date: Wed, 26 Feb 2014 12:45:56 +0100
|
|
Subject: [PATCH 1/2] Allow OPTFLAGS to override default CFLAGS
|
|
|
|
When building a package the build system might be wanting to
|
|
pass in some additional CFLAGS. So allow for the OPTFLAGS setting
|
|
to override the default CFLAGS.
|
|
|
|
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
---
|
|
usr/Makefile | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/usr/Makefile b/usr/Makefile
|
|
index e29826c..31067e8 100644
|
|
--- a/usr/Makefile
|
|
+++ b/usr/Makefile
|
|
@@ -32,12 +32,15 @@ INCLUDES += -I.
|
|
|
|
CFLAGS += -D_GNU_SOURCE
|
|
CFLAGS += $(INCLUDES)
|
|
+ifneq ($(OPTFLAGS),)
|
|
+CFLAGS += $(OPTFLAGS)
|
|
ifneq ($(DEBUG),)
|
|
CFLAGS += -g -O0 -ggdb -rdynamic
|
|
else
|
|
CFLAGS += -g -O2 -fno-strict-aliasing
|
|
endif
|
|
CFLAGS += -Wall -Wstrict-prototypes -fPIC
|
|
+endif
|
|
CFLAGS += -DTGT_VERSION=\"$(VERSION)$(EXTRAVERSION)\"
|
|
CFLAGS += -DBSDIR=\"$(DESTDIR)$(libdir)/backing-store\"
|
|
|
|
--
|
|
1.8.1.4
|
|
|