fixeria has uploaded this change for review. ( 
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(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-asn1-tcap 
refs/changes/74/41374/1

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}/

--
To view, visit https://gerrit.osmocom.org/c/libosmo-asn1-tcap/+/41374?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: libosmo-asn1-tcap
Gerrit-Branch: master
Gerrit-Change-Id: If65c43a34fd100ce712457dcf91abe2a8e49b7d2
Gerrit-Change-Number: 41374
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>

Reply via email to