Revert "build: compile with -ffunction-sections, -fdata-sections and LTO"
authorJo-Philipp Wich <jo@mein.io>
Tue, 31 Jul 2018 18:36:27 +0000 (20:36 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 31 Jul 2018 18:36:35 +0000 (20:36 +0200)
This reverts commit a51413988caaff7001f47c8a62bff11a72ca48bc.

It causes assertion failures in ld and requires changes to linked libraries,
so drop this for now.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Makefile

index d4f0f00bc6fcac1a8ae58fb4ab3adc91108ca3a9..715c03e34671401c6e82f72d78f703b725db9e0e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 IWINFO_BACKENDS    = $(BACKENDS)
-IWINFO_CFLAGS      = $(CFLAGS) -std=gnu99 -fstrict-aliasing -ffunction-sections -fdata-sections -flto -Iinclude
-IWINFO_LDFLAGS     = -Wl,-gc-sections -flto -luci -lubox -lubus
+IWINFO_CFLAGS      = $(CFLAGS) -std=gnu99 -fstrict-aliasing -Iinclude
+IWINFO_LDFLAGS     = -luci -lubox -lubus
 
 IWINFO_LIB         = libiwinfo.so
 IWINFO_LIB_LDFLAGS = $(LDFLAGS) -shared