I do stat /bin/sh and it pointed to dash (only name of program - not full path). Dash is in /usr/bin . After removing symlink and replaces it with symlink to /usr/bin/dash, the same error.
Problem is probably here: {.passC:staticExec("pkg-config --cflags mysqlclient").}
But why it tries to invoke /bin/sh and there's error? I understand it does try to invoke /bin/sh, because staticExec parameter is supposed to be shell command, but why it have trouble with invoking shell?