瀏覽代碼

fix(debian): avoid overwrite of DEB_BUILD_OPTIONS

jrcoding 4 年之前
父節點
當前提交
42a9b6a425
共有 1 個文件被更改,包括 3 次插入1 次删除
  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