xref: /OK3568_Linux_fs/buildroot/package/zip/0003-Makefile-Use-CFLAGS-from-command-line.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 93189390de7322da78bc5b807f4cadaff46393c9 Mon Sep 17 00:00:00 2001
2From: Romain Naour <romain.naour@openwide.fr>
3Date: Thu, 22 Jan 2015 22:45:30 +0100
4Subject: [PATCH 3/6] Makefile: Use CFLAGS from command line
5
6Replace CFLAGS_NOOPT by CFLAGS when calling unix/configure script
7to create 'flags' file which contains all variables used to build
8zip binary.
9
10Signed-off-by: Romain Naour <romain.naour@openwide.fr>
11---
12 unix/Makefile | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/unix/Makefile b/unix/Makefile
16index abd0c44..db62368 100644
17--- a/unix/Makefile
18+++ b/unix/Makefile
19@@ -177,7 +177,7 @@ uninstall:
20
21
22 flags:  unix/configure
23-	sh unix/configure "${CC}" "${CFLAGS_NOOPT}" "${IZ_BZIP2}"
24+	sh unix/configure "${CC}" "${CFLAGS}" "${IZ_BZIP2}"
25
26 # These symbols, when #defined using -D have these effects on compilation:
27 # ZMEM                  - includes C language versions of memset(), memcpy(),
28--
291.9.3
30
31