diff options
-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) |