On Thu, 20 Jul 2023 at 17:41, Nicklas SB Karlsson <n...@nksb.eu> wrote:
>
> Maybe you have to write in C so that you could tell the build system it
> need linkage?

I tried re-writing it all in C, and it didn't help.

I think that I might have worked it out, it looks like adding the
-lgpiod to the Submakefile for rtapi.app is the way to do it.

Now I need to work out the _right_ way to do that. Do I add it only if
gpiod is present on the system? Or if the target architecture is ARM?
Or what?

$(Q)$(CXX) -rdynamic $(LDFLAGS) -o $@ $^ $(LIBDL) -pthread -lrt
$(LIBUDEV_LIBS) -ldl -lgpiod

It feels like it should be part of LIBDL ?



--
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to