mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Linker command lines are order-sensitive. Move linker options -Lfoo -lfoo from LDFLAGS to LDLIBS and place this new variable after the objects to link. This resolves build errors in xenpagin and blktap with recent toolchains. rename SHLIB_CFLAGS to SHLIB_LDFLAGS rename LDFLAGS_* to LDLIBS_* move LDFLAGS usage after CFLAGS in CC calls remove stale comments in xenpaging Makefile Signed-off-by: Olaf Hering <olaf@aepfle.de> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
26 lines
420 B
Makefile
26 lines
420 B
Makefile
XEN_ROOT=../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
CFLAGS += -Werror
|
|
CFLAGS += $(CFLAGS_libxenstore)
|
|
LDLIBS += $(LDLIBS_libxenstore)
|
|
|
|
BIN = xenpmd
|
|
|
|
.PHONY: all
|
|
all: $(BIN)
|
|
|
|
.PHONY: install
|
|
install: all
|
|
$(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
|
|
$(INSTALL_PROG) $(BIN) $(DESTDIR)$(SBINDIR)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(RM) -f $(BIN) $(DEPS)
|
|
|
|
%: %.c Makefile
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ $(LDLIBS)
|
|
|
|
-include $(DEPS)
|