packages/net/gatling/patches/010-decrease_optimisation.patch
Martin Hübner 83ff83e320 gatling: add package gatling
Gatling is a high-performance webserver from fefe. It gives a
fairly decent feature-set at really small size. And its fast.

Co-authored-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Signed-off-by: Martin Hübner <martin.hubner@web.de>
2022-09-23 13:41:49 -07:00

25 lines
774 B
Diff

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