Hi all,
I have what should be a simple question, but I just can't seem to fine the answer.
In a Makefile, I have the following line:
libdir=/usr/lib/x86_64-linux-gnu
I also wish to be able to compile the same code on a Raspberry Pi, so when I do I use this line instead:
libdir=/usr/lib/arm-linux-gnueabihf
However, I need to edit the Makefile by hand to do this.
Is there any way that I can get these strings (highlighted in red) automatically? I do rebuild the Makefile using autoconf.
I looked at uname and it's output isn't usable (even if I hack out pieces and concatenate them).
Thanks!