File: dont_overwrite_cflags.patch

package info (click to toggle)
hfsplus 1.0.4-21
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,948 kB
  • sloc: ansic: 7,726; makefile: 54
file content (25 lines) | stat: -rw-r--r-- 682 bytes parent folder | download | duplicates (6)
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
Author: Reiner Herrmann <reiner@reiner-h.de>
Description: Allow setting CFLAGS externally

--- a/libhfsp/src/Makefile.am
+++ b/libhfsp/src/Makefile.am
@@ -27,7 +27,7 @@
 	    blockiter.c btree.c btreecheck.c fscheck.c hfstime.c libhfsp.c os.c unicode.c \
 	    record.c volume.c partitions.c 
 
-CFLAGS = -O2 -Wall
+CFLAGS ?= -O2 -Wall
 
 # I need to clean up these headers first before i can distribute them ...		
 # include_HEADERS = apple.h hfs.h hfsp.h libhfsp.h 
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -8,7 +8,7 @@
 
 INCLUDES = -I../libhfsp/src
 
-CFLAGS = -O2 -Wall
+CFLAGS ?= -O2 -Wall
 
 bin_PROGRAMS = hpmount hpumount hpls hpcd hpcopy hppwd hpfsck hprm hpmkdir