Merge pull request #19372 from cotequeiroz/libgd
[feed/packages.git] / net / gatling / patches / 010-decrease_optimisation.patch
1 gatling: decrease optimisation
2
3 When compiling on MIPS-architectures, in -O2 there happen some
4 errors on interlinking. Linker will will fail with:
5
6 ```
7 Unsupported jump between ISA modes; consider recompiling with interlinking enabled
8 ```
9
10 Reducing optimisation works around these errors and looks like
11 a fairly common solution to this problem.
12 https://forum.openwrt.org/t/unsupported-jump-between-isa-modes-consider-recompiling-with-interlinking-enabled/55786
13
14 Signed-off-by: Martin Hübner <martin.hubner@web.de>
15 --- a/GNUmakefile
16 +++ b/GNUmakefile
17 @@ -47,7 +47,7 @@ ifneq ($(DEBUG),)
18 CFLAGS+=-g -Og
19 LDFLAGS+=-g
20 else
21 -CFLAGS+=-O2 -fomit-frame-pointer -I/usr/local/include
22 +CFLAGS+=-O1 -fomit-frame-pointer -I/usr/local/include
23 LDFLAGS+=-s
24 ifneq ($(DIET),)
25 DIET+=-Os