build: don't add -lm -lpci -lz to APP_LDLIBS
PATCH 1/1 build: don't add -lm -lpci -lz to APP_LDLIBS
libm, libpci and libz are not always needed, so don't add them to APP_LDLIBS just because libc is selected.
In case they will be needed by someone, they should be added via a dedicated CONFIG option.
Note that none of the currently supported Xen stubdoms is using them.
Signed-off-by Juergen Gross <[email protected]>
--- Makefile | 3 --- 1 file changed, 3 deletions(-)
Makefile +0 -3
@@ -164,9 +164,6 @@ ifeq ($(CONFIG_LIBXENMANAGE),y) APP_LDLIBS += -L$(MANAGE_PATH) -whole-archive -lxenmanage -no-whole-archive LIBS += $(MANAGE_PATH)/libxenmanage.a endif -APP_LDLIBS += -lpci -APP_LDLIBS += -lz -APP_LDLIBS += -lm LDLIBS += -lc endif
Signature · 1 line
2.55.0
Juergen Gross, le jeu. 13 août 2026 16:35:36 +0200, a ecrit:
Quoted 9 lines
libm, libpci and libz are not always needed, so don't add them to
APP_LDLIBSjust because libc is selected.In case they will be needed by someone, they should be added via a dedicated CONFIG option.
Note that none of the currently supported Xen stubdoms is using them.
Signed-off-by Juergen Gross <[email protected]>
Agreed,
Reviewed-by Samuel Thibault <[email protected]>
Quoted 21 lines
--- Makefile | 3 --- 1 file changed, 3 deletions(-)Makefile +0
-3@@ -164,9 +164,6 @@ ifeq ($(CONFIG_LIBXENMANAGE),y) APP_LDLIBS += -L$(MANAGE_PATH) -whole-archive -lxenmanage -no-whole-archive LIBS += $(MANAGE_PATH)/libxenmanage.a endif -APP_LDLIBS += -lpci -APP_LDLIBS += -lz -APP_LDLIBS += -lm LDLIBS += -lc endifSignature · 1 line
2.55.0