[PATCH libnvme] examples: Add src/ into the include and library path
Han Han
hhan at redhat.com
Tue Oct 20 08:45:31 EDT 2020
That will fix the compiling errors like:
CC telemetry-listen
telemetry-listen.c:21:10: fatal error: libnvme.h: No such file or directory
21 | #include <libnvme.h>
| ^~~~~~~~~~~
Signed-off-by: Han Han <hhan at redhat.com>
---
examples/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/Makefile b/examples/Makefile
index be867a7..24f8574 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -1,5 +1,5 @@
CFLAGS ?= -g -O2
-override CFLAGS += -Wall -D_GNU_SOURCE
+override CFLAGS += -Wall -D_GNU_SOURCE -I ../src -L ../src
include ../Makefile.quiet
--
2.26.2
More information about the Linux-nvme
mailing list