libport usage and extra inclusion line

Menno Valkema menno.genode at ...9...
Tue Jun 21 13:01:55 CEST 2016


Hi Everyone,

We're using several libraries in our product, and most of them just work
by adding a line like:

LIBS = libc

However in some cases this is not sufficient. For example lwip requires
an additional include directive:

INC_DIR += $(REP_DIR)/src/lib/lwip/include
(line from repos/libports/src/test/lwip/http_srv_static/target.mk)

Leaving out this line will result in a compilation error of a local
include file. Looking at various library ports (mbedtls, polarssl, curl,
and probably more) we see similar behavior. Usually some library
configuration header file should be added manually to the include path
to make things work.

Adding this extra line for a default library configuration feels
redundant, so we're wondering we might do something we're not supposed
to do, or should be done in a different way?

Thanks, Menno

-- 
Cyber Security Labs B.V. | Gooimeer 6-31 | 1411 DD Naarden | The Netherlands





More information about the users mailing list