aboutsummaryrefslogtreecommitdiff
path: root/net/gatling/patches/010-decrease_optimisation.patch
blob: 8788b073d453d98cf18654c54c72167bc1f7e68f (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
gatling: decrease optimisation

When compiling on MIPS-architectures, in -O2 there happen some
errors on interlinking. Linker will will fail with:

```
Unsupported jump between ISA modes; consider recompiling with interlinking enabled
```

Reducing optimisation works around these errors and looks like
a fairly common solution to this problem.
https://forum.openwrt.org/t/unsupported-jump-between-isa-modes-consider-recompiling-with-interlinking-enabled/55786

Signed-off-by: Martin Hübner <martin.hubner@web.de>
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -47,7 +47,7 @@ ifneq ($(DEBUG),)
 CFLAGS+=-g -Og
 LDFLAGS+=-g
 else
-CFLAGS+=-O2 -fomit-frame-pointer -I/usr/local/include
+CFLAGS+=-O1 -fomit-frame-pointer -I/usr/local/include
 LDFLAGS+=-s
 ifneq ($(DIET),)
 DIET+=-Os