From 82bde8c42db177d6069459f641c74c1ab1fc745f Mon Sep 17 00:00:00 2001 From: Anari Jalakas Date: Mon, 11 Nov 2024 21:00:46 +0200 Subject: [PATCH] luci-lib-ip: fix build error with LTO Adding $(FPIC) parameter fixes building with CONFIG_USE_LTO enabled. Signed-off-by: Anari Jalakas --- libs/luci-lib-ip/src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/luci-lib-ip/src/Makefile b/libs/luci-lib-ip/src/Makefile index 76abd27d2a..ffed8a6870 100644 --- a/libs/luci-lib-ip/src/Makefile +++ b/libs/luci-lib-ip/src/Makefile @@ -7,7 +7,7 @@ IP_LIB = ip.so $(CC) $(CPPFLAGS) $(CFLAGS) $(LUA_CFLAGS) $(IP_CFLAGS) $(FPIC) -c -o $@ $< compile: $(IP_OBJ) - $(CC) $(LDFLAGS) -shared -o $(IP_LIB) $(IP_OBJ) $(IP_LDFLAGS) + $(CC) $(LDFLAGS) -shared -o $(IP_LIB) $(IP_OBJ) $(IP_LDFLAGS) $(FPIC) install: compile mkdir -p $(DESTDIR)/usr/lib/lua/luci -- 2.30.2