You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
774 B

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