File: 0010-Use-CPPFLAGS-correctly.patch

package info (click to toggle)
mhddfs 0.1.39.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 548 kB
  • sloc: ansic: 1,947; makefile: 168; perl: 156; sh: 131
file content (53 lines) | stat: -rw-r--r-- 1,269 bytes parent folder | download
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
From aa48c2cfac6c7396d37a2b009111e3701e770a09 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= <nabijaczleweli@nabijaczleweli.xyz>
Date: Wed, 28 May 2025 17:59:32 +0200
Subject: [PATCH] Use CPPFLAGS correctly
X-Mutt-PGP: OS

---
 Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index eddd8f7..ad3bf18 100644
--- a/Makefile
+++ b/Makefile
@@ -71,7 +71,7 @@ help:
 tarball: mhddfs_$(VERSION).tar.gz
 	@echo '>>>> mhddfs_$(VERSION).tar.gz created'
 
-mhddfs_$(VERSION).tar.gz: $(FORTAR) $(wildcard src/*) 
+mhddfs_$(VERSION).tar.gz: $(FORTAR) $(wildcard src/*)
 	mkdir mhddfs-$(VERSION)
 	cp -r $(FORTAR) mhddfs-$(VERSION)
 	tar --exclude=.svn -czvf $@ mhddfs-$(VERSION)
@@ -92,7 +92,7 @@ obj/obj-stamp:
 	touch $@
 
 obj/%.o: src/%.c
-	$(CC) $(CFLAGS) -c $< -o $@
+	$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
 
 clean:
 	rm -fr obj $(TARGET) pwrite_test statvfs rename
@@ -102,7 +102,7 @@ clean:
 
 rename: tests/rename.c
 	$(CC) -o $@ $<
-	
+
 release_svn_thread:
 	@echo current version $(VERSION)
 	if ! svn ls http://svn.uvw.ru/mhddfs/tags| \
@@ -157,7 +157,7 @@ btest:
 			|tee $$file_name \
 			|md5sum; \
 		md5sum $$file_name
-		
+
 
 tests:
 	while make test; do echo ok; echo; done
-- 
2.39.5