diff options
author | Luca Boccassi <luca.boccassi@gmail.com> | 2017-07-06 17:46:32 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2017-07-07 11:47:45 +0100 |
commit | 7ded5bb6e09b1f8a469c8005f123e33342415d9e (patch) | |
tree | b8c1f8e9ee3bb18663bbb7feb4e3c879cfd5fd73 | |
parent | 4dedbcda930fbdbd1367dc144365224997b9b89a (diff) |
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 <luca.boccassi@gmail.com>
-rwxr-xr-x | debian/rules | 7 |
1 files changed, 7 insertions, 0 deletions
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)/ |