From 83ff83e32055dc50b01fffe7bae9ea113655756b Mon Sep 17 00:00:00 2001 From: Martin Hübner Date: Tue, 2 Aug 2022 14:42:06 +0200 Subject: gatling: add package gatling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Martin Hübner --- .../patches/010-decrease_optimisation.patch | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 net/gatling/patches/010-decrease_optimisation.patch (limited to 'net/gatling/patches/010-decrease_optimisation.patch') diff --git a/net/gatling/patches/010-decrease_optimisation.patch b/net/gatling/patches/010-decrease_optimisation.patch new file mode 100644 index 000000000..8788b073d --- /dev/null +++ b/net/gatling/patches/010-decrease_optimisation.patch @@ -0,0 +1,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 +--- 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 -- cgit