Debian Codegraph @

debian/patches/hardening.patch

raw
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -1,8 +1,8 @@
4 CC ?= gcc
5 CXX ?= g++
6 AR ?= ar
7 -CPPFLAGS=-g -Wall -fPIC
8 -CFLAGS=-g -Wall -fPIC
9 +CPPFLAGS += -g -Wall -fPIC
10 +CFLAGS += -g -Wall -fPIC
11
12 # Enable to test with GCC 3.4
13 # CXX=g++34
14 @@ -23,7 +23,7 @@
15 debug: clean all
16
17 libmmap_allocator.so: mmap_file_pool.o
18 - $(CXX) -shared -o libmmap_allocator.so mmap_file_pool.o
19 + $(CXX) -shared -o libmmap_allocator.so mmap_file_pool.o $(LDFLAGS)
20
21 libmmap_allocator.a: mmap_file_pool.o
22 $(AR) r libmmap_allocator.a mmap_file_pool.o
23 @@ -44,7 +44,7 @@
24 bash -c 'export LD_LIBRARY_PATH=. ; ./test_allocator'
25
26 test_allocator: mmap_allocator.h mmap_file_pool.o test_allocator.o $(LIBRARIES)
27 - $(CXX) test_allocator.o -L. -lmmap_allocator -o test_allocator
28 + $(CXX) test_allocator.o -L. -lmmap_allocator -o test_allocator $(LDFLAGS)
29
30 test_mmap_fixed: test_mmap_fixed.c
31 $(CC) $(CFLAGS) test_mmap_fixed.c -o test_mmap_fixed