pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-asn1-tcap/+/41374?usp=email )
Change subject: libosmo-asn1-tcap.pc.in: fix include path in Cflags ......................................................................
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 --- M libosmo-asn1-tcap.pc.in 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Jenkins Builder: Verified pespin: Looks good to me, approved
diff --git a/libosmo-asn1-tcap.pc.in b/libosmo-asn1-tcap.pc.in index 490dd41..17971a1 100644 --- a/libosmo-asn1-tcap.pc.in +++ b/libosmo-asn1-tcap.pc.in @@ -7,4 +7,4 @@ Description: C Utility Library Version: @VERSION@ Libs: -L${libdir} -losmo-asn1-tcap -Cflags: -I${includedir}/osmocom/tcap/ +Cflags: -I${includedir}/