From 21de24540f409e98fb08572f83b953cfec1967b7 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Wed, 30 Apr 2025 22:29:28 -0700 Subject: Changes to make it work on raspberry pi debian 12 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index adccbbf..d684342 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,8 @@ remote_plot.o: remote_plot.c cc -Wall $$(pkg-config --cflags --libs libssh plplot gtk4) -lm -c $< remote_plot: list.o remote_plot.o - cc -Wall $$(pkg-config --cflags --libs libssh plplot gtk4) -lm -o $@ $^ +# raspberry pi debian 12 make error `ld: undefined reference to ...` if use `cc -Wall $$(pkg-config --cflags --libs libssh plplot gtk4) -lm -o $@ $^`. No error if move $^ to the beginning. Not sure why, maybe becuase pi has an old version of gcc? + cc $^ -Wall $$(pkg-config --cflags --libs libssh plplot gtk4) -lm -o $@ clean: rm -f remote_plot remote_plot.o list.o -- cgit v1.2.3-70-g09d2