picocom: fix cross compilation

This commit is contained in:
Colin 2024-10-02 00:13:20 +00:00
parent 8637e879e4
commit 78b037d36f

View File

@ -10,8 +10,8 @@ index 8fca24ee38..33b59b5b96 100644
-OBJS += linenoise-1.0/linenoise.o
-linenoise-1.0/linenoise.o : linenoise-1.0/linenoise.c linenoise-1.0/linenoise.h
+ -DLINENOISE \
+ $(shell pkg-config --cflags linenoise)
+LDFLAGS += $(shell pkg-config --libs linenoise)
+ $(shell $(PKG_CONFIG) --cflags linenoise)
+LDFLAGS += $(shell $(PKG_CONFIG) --libs linenoise)
## Comment this in to enable (force) custom baudrate support
## even on systems not enabled by default.