aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-04-30 22:29:28 -0700
committerXiao Pan <xyz@flylightning.xyz>2025-04-30 22:29:28 -0700
commit21de24540f409e98fb08572f83b953cfec1967b7 (patch)
treec0ed8e840b00bff98785214d9dc51285e870f040 /Makefile
parent3471413e9f07fd7ab7f2ba22f952bce5cadb037d (diff)
Changes to make it work on raspberry pi debian 12
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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