summaryrefslogtreecommitdiff
path: root/www-client/chawan/files/makefile-20310c68dfce11a77244663e348db5bc37ea4b7c.patch
blob: 303b7fb9b9d47662274a34b2b53be943cf3d24b9 (plain)
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
diff --git a/Makefile b/Makefile
index ee11d400..78d0be71 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ NIMC ?= $(NIM) c
 OBJDIR ?= .obj
 OUTDIR ?= target
 # These paths are quoted in recipes.
-PREFIX ?= /usr/local
+PREFIX ?= /usr
 MANPREFIX ?= $(PREFIX)/share/man
 MANPREFIX1 ?= $(MANPREFIX)/man1
 MANPREFIX5 ?= $(MANPREFIX)/man5
@@ -55,27 +55,7 @@ chac_flags =
 embed_startup = 0
 
 # Nim compiler flags
-ifeq ($(TARGET),debug)
-FLAGS += -d:debug --debugger:native
-CFLAGS += -DDUMP_LEAKS=1
-else ifeq ($(TARGET),release)
-embed_startup = 1
-chac_flags = -s
-FLAGS += -d:release -d:strip -d:lto
-else ifeq ($(TARGET),release-nolto)
-embed_startup = 1
-chac_flags = -s
-FLAGS += -d:release -d:strip
-else ifeq ($(TARGET),release0)
-FLAGS += -d:release --stacktrace:on
-else ifeq ($(TARGET),release1)
-FLAGS += -d:release --debugger:native
-else ifeq ($(TARGET),asan)
-CFLAGS += -fsanitize=address -DDUMP_LEAKS=1
-LDFLAGS += -fsanitize=address
-FLAGS += -d:debug --debugger:native -d:useMalloc
-DANGER_DISABLE_SANDBOX = 1
-endif
+FLAGS += -d:release
 
 ifeq ($(embed_startup),1)
 embed_script = $(OBJDIR)/init.jsb