Skip to content
Success

Changes

Summary

  1. libosmo-asn1-tcap.pc.in: fix include path in Cflags (details)
Commit fe3328c2b21a142e5f739fb6450d340363801840 by Vadim Yanitskiy
libosmo-asn1-tcap.pc.in: fix include path in Cflags

Including header files from this library like this:

  #include <osmocom/tcap/OCTET_STRING.h>
  #include <osmocom/tcap/TCAP_TCMessage.h>

currently fails if libosmo-asn1-tcap is installed to a non-standard
location (other than /usr/include/).  The reason is that this file
tells the compiler to use the following include path:

  -I${includedir}/osmocom/tcap/

so the compiler will be looking for headers in there:

  ${includedir}/osmocom/tcap/osmocom/tcap/OCTET_STRING.h
  ${includedir}/osmocom/tcap/osmocom/tcap/TCAP_TCMessage.h

This is wrong and will obviously fail.  Let's use `-I${includedir}/` -
this is what most of the Osmocom libraries specify in their `*.pc.in`.

Change-Id: If65c43a34fd100ce712457dcf91abe2a8e49b7d2
Fixes: c454c74 ("Regenerate code with newer asn1c")
Related: SYS#5423
The file was modifiedlibosmo-asn1-tcap.pc.in