File: 0001-Append-to-CFLAGS-and-LDFLAGS.patch

package info (click to toggle)
qdl 1.0%2Bgit20230411.3b22df2-1~bpo11%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye-backports-sloppy
  • size: 168 kB
  • sloc: ansic: 1,813; makefile: 47
file content (27 lines) | stat: -rw-r--r-- 808 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Christopher Obbard <chris.obbard@collabora.com>
Date: Tue, 12 Apr 2022 18:06:50 +0100
Subject: Append to CFLAGS and LDFLAGS

Append to CFLAGS and LDFLAGS to allow build systems
to add parameters to these variables

Forwarded: not-needed
Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 95692fc..125ab15 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 OUT := qdl
 
-CFLAGS := -O2 -Wall -g `pkg-config --cflags libxml-2.0`
-LDFLAGS := `pkg-config --libs libxml-2.0 libudev`
+CFLAGS += -O2 -Wall -g `pkg-config --cflags libxml-2.0`
+LDFLAGS += `pkg-config --libs libxml-2.0 libudev`
 prefix := /usr/local
 
 SRCS := firehose.c qdl.c sahara.c util.c patch.c program.c ufs.c