diff options
author | Michael Brown <mcb30@ipxe.org> | 2021-03-03 01:09:33 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2021-03-03 01:09:33 +0000 |
commit | 50d13907c440da96e352979da43f5eea68446db1 (patch) | |
tree | 9cc4d5bdcbcb470be392e0bfb7ca3634b957d2f1 | |
parent | 69ecab2634d3f5a825e0baaa310ba048d5aed3b5 (diff) | |
download | ipxe-50d13907c440da96e352979da43f5eea68446db1.zip ipxe-50d13907c440da96e352979da43f5eea68446db1.tar.gz ipxe-50d13907c440da96e352979da43f5eea68446db1.tar.bz2 |
[linux] Place -lslirp at end of linker search list
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r-- | src/Makefile.linux | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Makefile.linux b/src/Makefile.linux index 09b2b15..85d9c64 100644 --- a/src/Makefile.linux +++ b/src/Makefile.linux @@ -34,7 +34,7 @@ LIBSLIRP_TEST = $(CC) $(LINUX_CFLAGS) -x c /dev/null -nostartfiles \ WITH_LIBSLIRP := $(shell $(LIBSLIRP_TEST) && $(ECHO) yes) ifneq ($(WITH_LIBSLIRP),) LINUX_CFLAGS += -DHAVE_LIBSLIRP -LINUX_LDFLAGS += -lslirp +LINUX_LIBS += -lslirp endif # Host API wrapper @@ -48,5 +48,4 @@ $(BIN)/linux_api.o : interface/linux/linux_api.c include/ipxe/linux_api.h \ # $(BIN)/%.linux : $(BIN)/%.linux.tmp $(BIN)/linux_api.o $(QM)$(ECHO) " [FINISH] $@" - $(Q)$(CC) $(LINUX_CFLAGS) $(WORKAROUND_CFLAGS) $(LINUX_LDFLAGS) \ - -o $@ $^ + $(Q)$(CC) $(LINUX_CFLAGS) $(WORKAROUND_CFLAGS) -o $@ $^ $(LINUX_LIBS) |