set RTE_MACHINE after potential external override 64/15964/1
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Thu, 15 Nov 2018 11:31:48 +0000 (12:31 +0100)
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>
Thu, 15 Nov 2018 11:31:48 +0000 (12:31 +0100)
Change-Id: I4bfa59886592511af7ebe6c6d78014675d0a3173
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
debian/rules

index b88051e..a2c553c 100755 (executable)
@@ -12,14 +12,14 @@ ifeq (,$(findstring terse,$(DEB_BUILD_OPTIONS)))
        export DH_OPTIONS=-v
 endif
 
-# default to minimal base, without setting this it would build
-# -march=native which is a non portable invariant
-RTE_MACHINE ?= "default"
 # People rebuilding this package can overwrite RTE_MACHINE
 # via DEB_BUILD_OPTIONS if they like
 ifneq (,$(filter rte_machine=%,$(DEB_BUILD_OPTIONS)))
     RTE_MACHINE ?= $(patsubst rte_machine=%,%,$(filter rte_machine=%,$(DEB_BUILD_OPTIONS)))
 endif
+# default to minimal base, without setting this it would build
+# -march=native which is a non portable invariant
+RTE_MACHINE ?= "default"
 
 # now stable with parallel comilation, so support -j
 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))