Closed hartwork closed 1 year ago
Running make on macOS returns:
/bin/sh: pkg-config: command not found
@tenox7 two thoughts on that:
pkg-config --libs ncurses 2>/dev/null || echo '-lcurses -ltinfo'
instead?@tenox7 updated now to demo the fallback approach.
that looks better, let me test it a bit :)
@tenox7 any news?
BTW the variable expansion is done when CC command is invoked
$ make
cc -O2 -pipe -Wall -Wextra ttyplot.c `pkg-config --libs ncurses 2>/dev/null || echo '-lcurses -ltinfo'` -o ttyplot
@tenox7 yes, is that a problem? I'm not sure about the message here.
I guess it's not a problem on modern systems.
Fixes #66
I'm happy to adjust and discuss.