| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.inc,v 1.7 2019/03/27 15:30:19 christos Exp $ | | 1 | # $NetBSD: Makefile.inc,v 1.8 2019/03/29 15:13:44 christos Exp $ |
2 | | | 2 | |
3 | JEMALLOC:=${.PARSEDIR}/.. | | 3 | JEMALLOC:=${.PARSEDIR}/.. |
4 | | | 4 | |
5 | JEMALLOC_SRCS+= \ | | 5 | JEMALLOC_SRCS+= \ |
6 | jemalloc.c \ | | 6 | jemalloc.c \ |
7 | arena.c \ | | 7 | arena.c \ |
8 | background_thread.c \ | | 8 | background_thread.c \ |
9 | base.c \ | | 9 | base.c \ |
10 | bin.c \ | | 10 | bin.c \ |
11 | bitmap.c \ | | 11 | bitmap.c \ |
12 | ckh.c \ | | 12 | ckh.c \ |
13 | ctl.c \ | | 13 | ctl.c \ |
14 | divide.c \ | | 14 | divide.c \ |
| @@ -28,28 +28,27 @@ prng.c \ | | | @@ -28,28 +28,27 @@ prng.c \ |
28 | prof.c \ | | 28 | prof.c \ |
29 | rtree.c \ | | 29 | rtree.c \ |
30 | stats.c \ | | 30 | stats.c \ |
31 | sz.c \ | | 31 | sz.c \ |
32 | tcache.c \ | | 32 | tcache.c \ |
33 | ticker.c \ | | 33 | ticker.c \ |
34 | tsd.c \ | | 34 | tsd.c \ |
35 | witness.c | | 35 | witness.c |
36 | | | 36 | |
37 | .PATH: ${JEMALLOC}/dist/src ${JEMALLOC}/lib | | 37 | .PATH: ${JEMALLOC}/dist/src ${JEMALLOC}/lib |
38 | .SUFFIXES: .3 | | 38 | .SUFFIXES: .3 |
39 | .PATH.3: ${JEMALLOC}/dist/doc | | 39 | .PATH.3: ${JEMALLOC}/dist/doc |
40 | .for i in ${JEMALLOC_SRCS} | | 40 | .for i in ${JEMALLOC_SRCS} |
41 | CPPFLAGS.${i}+=-I${JEMALLOC}/include -DJEMALLOC_NO_PRIVATE_NAMESPACE \ | | 41 | CPPFLAGS.${i}+=-I${JEMALLOC}/include -DJEMALLOC_PROTECT_NOSTD -DJEMALLOC_DEBUG |
42 | -DJEMALLOC_PROTECT_NOSTD -DJEMALLOC_DEBUG | | | |
43 | COPTS.${i}+= -fvisibility=hidden -funroll-loops | | 42 | COPTS.${i}+= -fvisibility=hidden -funroll-loops |
44 | .endfor | | 43 | .endfor |
45 | | | 44 | |
46 | COPTS.background_thread.c+=-Wno-error=stack-protector | | 45 | COPTS.background_thread.c+=-Wno-error=stack-protector |
47 | COPTS.ctl.c+=-Wno-error=stack-protector | | 46 | COPTS.ctl.c+=-Wno-error=stack-protector |
48 | COPTS.stats.c+=-Wno-error=stack-protector | | 47 | COPTS.stats.c+=-Wno-error=stack-protector |
49 | COPTS.tcache.c+=-Wno-error=stack-protector | | 48 | COPTS.tcache.c+=-Wno-error=stack-protector |
50 | | | 49 | |
51 | .if ${MACHINE_ARCH} == "vax" | | 50 | .if ${MACHINE_ARCH} == "vax" |
52 | # in merge_overlapping_regs, at regrename.c | | 51 | # in merge_overlapping_regs, at regrename.c |
53 | COPTS.arena.c+=-O0 | | 52 | COPTS.arena.c+=-O0 |
54 | COPTS.extent.c+=-O0 | | 53 | COPTS.extent.c+=-O0 |
55 | .endif | | 54 | .endif |