Unverified Commit 35d02934 authored by Artturin's avatar Artturin Committed by GitHub
Browse files

picocom: fix cross compilation (#345811)

parents 7f8d1417 78b037d3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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.