Browse Source

fix(debian): avoid overwrite of DEB_BUILD_OPTIONS

jrcoding 4 years ago
parent
commit
42a9b6a425
1 changed files with 3 additions and 1 deletions
  1. 3 1
      debian/rules-template

+ 3 - 1
debian/rules-template

@@ -3,7 +3,6 @@
 export DH_VERBOSE = 1
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
-export DEB_BUILD_OPTIONS=parallel=4
 
 override_dh_auto_configure:
 	dh_auto_configure -- -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUA_NAMESPACE_ZERO=FULL -DUA_ENABLE_AMALGAMATION=OFF -DUA_PACK_DEBIAN=ON
@@ -11,5 +10,8 @@ override_dh_auto_configure:
 override_dh_auto_test:
 	dh_auto_test -- ARGS+=--output-on-failure
 
+override_dh_auto_build:
+	dh_auto_build -- -j`nproc --ignore=2`
+
 %:
 	dh $@ --buildsystem=cmake --parallel