picocom: fix cross compilation (#345811)

This commit is contained in:
Artturin 2024-10-02 05:34:09 +03:00 committed by GitHub
commit 35d02934a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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.