made c-compiler configurable, and added /usr/local as include path for cc and c++ tests

This commit is contained in:
Olof Hagsand 2020-07-10 13:21:49 +00:00
parent 53deedc242
commit 94bf490a79
4 changed files with 5 additions and 6 deletions

View file

@ -210,7 +210,8 @@ clixon_plugin_init(clicon_handle h)
EOF
new "compile $cfile"
cc -g -Wall -rdynamic -fPIC -shared $cfile -o $sofile
# -I /usr/local_include for eg freebsd
expectpart "$($CC -g -Wall -rdynamic -fPIC -shared -I/usr/local/include $cfile -o $sofile)" 0 ""
new "test params: -s running -f $cfg"