IdirO
1 July 2021 21:53
#1
Hello,
I tried to add a static library to RIOT OS packages, but I didn’t quite understand how to go about it.
It is an .a library file with a header file.
I tried to add it with BASELIBS and APPDEPS in the Makefile but my functions are always undefined.
Thank you for your help
Not sure this is the answer you are looking for (maybe @Kaspar can give a better hint here), but did you have a look at examples/bindist
?
Hello @IdirO ,
I think including the .a
file to the ARCHIVES
variable and then the path to the libraries the INCLUDES
one should suffice. See an example of a package that uses a similar approach here .
IdirO
15 July 2021 08:18
#4
Thank you for your answers, i finally did this with the ARCHIVES and INCLUDES variables.
1 Like