diff --git a/nvwa.spec b/nvwa.spec index c96ab1af4b22f39d6fb0c9a59040c69cf7331f80..4b87209886c973b83e1694af3d8eea52b8c07f95 100644 --- a/nvwa.spec +++ b/nvwa.spec @@ -24,11 +24,11 @@ A tool used to automate the process of seamless update of the openEuler. %build cd src -go build -mod=vendor +go build -mod=vendor -buildmode=pie cd - cd tools -gcc %{name}-pin.c -o %{name}-pin +gcc %{name}-pin.c -o %{name}-pin -fstack-protector-all -fPIE -pie -Wl,-z,noexecstack,-z,relro,-z,now cd - %install