Package: metastore / 1+20080623+debian-5

03-build-flags.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Don't overwrite environment CFLAGS, use CPPFLAGS.

--- a/Makefile
+++ b/Makefile
@@ -18,13 +18,13 @@
 # Generic settings
 #
 CC              = gcc
-CFLAGS          = -g -Wall -pedantic -std=c99 -D_FILE_OFFSET_BITS=64 -O2
-LDFLAGS         =
+CFLAGS         += -g -Wall -pedantic -std=c99 -D_FILE_OFFSET_BITS=64 -O2
+LDFLAGS        +=
 INCLUDES        =
 INSTALL         = install -c
 INSTALL_PROGRAM = ${INSTALL}
 INSTALL_DATA    = ${INSTALL} -m 644
-COMPILE         = $(CC) $(INCLUDES) $(CFLAGS)
+COMPILE         = $(CC) $(INCLUDES) $(CFLAGS) $(CPPFLAGS)
 LINK            = $(CC) $(CFLAGS) $(LDFLAGS)
 OBJECTS         = utils.o metastore.o metaentry.o
 HEADERS         = utils.h metastore.h metaentry.h