summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6ca79b6)
raw | patch | inline | side by side (parent: 6ca79b6)
author | Christian Ehrhardt <christian.ehrhardt@canonical.com> | |
Thu, 17 Aug 2017 13:01:27 +0000 (15:01 +0200) | ||
committer | Christian Ehrhardt <christian.ehrhardt@canonical.com> | |
Thu, 17 Aug 2017 13:01:27 +0000 (15:01 +0200) |
In some way it is bad naming in pkg-config - it is always some sort of
conflated ldflags + libs and cppflags + cxxflags + cflags.
Due to that to work correctly we append DPDK_CFLAGS (if defined by
pkg-config) to LIBDPDK_CPPFLAGS as well.
This intentionally does not add those CFLAGS specified by a user to
allow full override and fully separated CLFAGS/CPPFLAGS if needed.
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
conflated ldflags + libs and cppflags + cxxflags + cflags.
Due to that to work correctly we append DPDK_CFLAGS (if defined by
pkg-config) to LIBDPDK_CPPFLAGS as well.
This intentionally does not add those CFLAGS specified by a user to
allow full override and fully separated CLFAGS/CPPFLAGS if needed.
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 667e944b24faac2a99b3bdf7d7cd19096f2611ec..13e63404995c2920c5668d0b1c42ca9a57aa4774 100644 (file)
--- a/configure.ac
+++ b/configure.ac
if test "x$with_libdpdk" != "xno"; then
PKG_CHECK_MODULES([DPDK], [libdpdk])
+ if test "x$LIBDPDK_CPPFLAGS" = "x"; then
+ LIBDPDK_CPPFLAGS="-I/usr/include/dpdk"
+ fi
if test "x$LIBDPDK_CFLAGS" = "x"; then
LIBDPDK_CFLAGS="$DPDK_CFLAGS"
+ LIBDPDK_CPPFLAGS="$LIBDPDK_CPPFLAGS $DPDK_CFLAGS"
fi
if test "x$LIBDPDK_LIBS" = "x"; then
if test "x$DPDK_LIBS" != "x"; then
LIBDPDK_LIBS="-ldpdk"
fi
fi
- if test "x$LIBDPDK_CPPFLAGS" = "x"; then
- LIBDPDK_CPPFLAGS="-I/usr/include/dpdk"
- fi
SAVE_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$LIBDPDK_CPPFLAGS $CPPFLAGS"
SAVE_CFLAGS="$CFLAGS"