From: Luca Boccassi Date: Thu, 6 Jul 2017 16:46:32 +0000 (+0100) Subject: Backward compatibility: symlink x86_64 headers X-Git-Url: https://gerrit.fd.io/r/gitweb?p=deb_dpdk.git;a=commitdiff_plain;h=6be00c99dd80857dab8f7e8cffc23501fb2917fa Backward compatibility: symlink x86_64 headers To avoid breaking compatibility, at least for the x86_64 users which are the vast majority, symlink arch-specific headers in the general include directory. Change-Id: I684115c9196d7926e15734221e9ad8e1061af432 Signed-off-by: Luca Boccassi --- diff --git a/debian/rules b/debian/rules index 16f1a67d..cff34ae8 100755 --- a/debian/rules +++ b/debian/rules @@ -283,6 +283,13 @@ endif mv debian/dpdk-dev/usr/include/dpdk/rte_config.h \ debian/libdpdk-dev/usr/include/$(DEB_HOST_MULTIARCH)/dpdk/ mv debian/dpdk-dev/usr/include/dpdk debian/libdpdk-dev/usr/include/ + # backward compatibility: to ease things for the majority of users, + # which are on x86_64, symlink the x86 headers into the global + # directory. +ifeq (x86_64-linux-gnu,$(DEB_HOST_MULTIARCH)) + ln -rs debian/libdpdk-dev/usr/include/$(DEB_HOST_MULTIARCH)/dpdk/*.h \ + debian/libdpdk-dev/usr/include/dpdk +endif # all static libs are in the dev package ifeq (y,$(BUILD_STATIC_LIB)) mv debian/dpdk/$(LIBDIR)/lib*.a debian/libdpdk-dev/$(LIBDIR)/