tgt/tgt-fix-build
Dirk Mueller 5971eaaae4 - Update to version v1.0.92 (from 1.0.89):
* fix arm64 compilation
  * do not rely on non-portable __WORDSIZE nor LFS64 interfaces
  * Enabled thin-provision option for discarding ranges from block
    devices, that supporting discard

OBS-URL: https://build.opensuse.org/package/show/Base:System/tgt?expand=0&rev=63
2024-08-31 09:24:29 +00:00

29 lines
862 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(+)
Index: tgt-1.0.92/usr/Makefile
===================================================================
--- tgt-1.0.92.orig/usr/Makefile
+++ tgt-1.0.92/usr/Makefile
@@ -41,6 +41,9 @@ INCLUDES += -I.
CFLAGS += -D_FILE_OFFSET_BITS=64
CFLAGS += -D_GNU_SOURCE
CFLAGS += $(INCLUDES)
+ifneq ($(OPTFAGS),)
+CFLAGS += $(OPTFLAGS)
+endif
ifneq ($(DEBUG),)
CFLAGS += -g -O0 -ggdb -rdynamic
else