LISP EID virtualization support
[vpp.git] / build-data / platforms.mk
index 988be14..625006b 100644 (file)
@@ -27,8 +27,10 @@ install-deb: $(patsubst %,%-find-source,$(ROOT_PACKAGES))
        find $(INSTALL_PREFIX)$(ARCH)/*/bin -type f -print              \
          | sed -e 's:.*:../& /usr/bin:'                                \
            > deb/debian/vpp.install ;                                  \
-       find $(INSTALL_PREFIX)$(ARCH)/*/lib*  -type f -print            \
-         | egrep -e '*\.so\.*\.*\.*'                                   \
+                                                                       \
+       : need symbolic links in the lib pkg ;                          \
+       find $(INSTALL_PREFIX)$(ARCH)/*/lib* \( -type f -o  -type l \)  \
+         -print | egrep -e '*\.so\.*\.*\.*'                            \
          | sed -e 's:.*:../& /usr/lib/x86_64-linux-gnu:'               \
            > deb/debian/vpp-lib.install ;                              \
                                                                        \
@@ -70,6 +72,7 @@ install-rpm: $(patsubst %,%-find-source,$(ROOT_PACKAGES))
              $(ROOT_PACKAGES)) || exit 1;                              \
                                                                        \
        cd rpm ;                                                        \
-       rpmbuild -bb --define "_topdir $$PWD"  vpp.spec ;               \
+       rpmbuild -bb --define "_topdir $$PWD" --define                  \
+               "_install_dir $(INSTALL_PREFIX)$(ARCH)" vpp.spec ;      \
        mv $$(find RPMS -name \*.rpm -type f) ..