mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-05 20:02:19 +03:00
libcoap-1.pc: fix pkg-config include path
This change excludes the coap subdirectory from the include path reported by pkg-config --cflags to avoid name conflicts with other installed packages. Applications now must add the prefix 'coap/' to include directives for libcoap header files, e.g. #include <coap/coap.h> Jean-Claude Michelou has reported this problem in Bug #82 [1]. [1] https://github.com/obgm/libcoap/issues/82 A minimal Makefile now could look be written as: PKG_LIBCOAP=libcoap-1 CPPFLAGS=$(shell pkg-config --cflags-only-I $(PKG_LIBCOAP)) -DWITH_POSIX LDFLAGS=$(shell pkg-config --libs-only-L $(PKG_LIBCOAP)) LDLIBS=$(shell pkg-config --libs-only-l $(PKG_LIBCOAP))
This commit is contained in:
1 parent
0b3f31a1bb
commit
6d7ba61ae0
7 files changed
+11
-11
No files matched your search
+1
-1
@@ -23,7 +23,7 @@
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
|
||||
#include "coap.h"
|
||||
#include <coap/coap.h>
|
||||
#include "coap_list.h"
|
||||
|
||||
int flags = 0;
|
||||
|
||||
Reference in new issue
Block a user