X-Git-Url: https://gerrit.fd.io/r/gitweb?p=deb_dpdk.git;a=blobdiff_plain;f=debian%2Frules;fp=debian%2Frules;h=b1af5222382681418ee2c307d68b62303add671d;hp=d8ff99bf5e138cab4373884bef331b3d9d325e8d;hb=7ded5bb6e09b1f8a469c8005f123e33342415d9e;hpb=4dedbcda930fbdbd1367dc144365224997b9b89a diff --git a/debian/rules b/debian/rules index d8ff99bf..b1af5222 100755 --- a/debian/rules +++ b/debian/rules @@ -276,6 +276,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)/