!10 [sync] PR-9: 【轻量级 PR】:feat: fix pie

From: @openeuler-sync-bot 
Reviewed-by: @HelloWorld_lvcongqing 
Signed-off-by: @HelloWorld_lvcongqing
This commit is contained in:
openeuler-ci-bot 2023-04-03 06:17:06 +00:00 committed by Gitee
commit af0795d327
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -8,7 +8,7 @@
Name: deepin-dbus-generator
Version: 0.6.6
Release: 3
Release: 4
Summary: Convert dbus interfaces to go-lang or qml wrapper code
License: GPLv3+
URL: https://github.com/linuxdeepin/go-dbus-generator
@ -28,7 +28,7 @@ sed -i 's|qmake|qmake-qt5|' build_test.go template_qml.go
%build
export GOPATH=%{_builddir}/%{name}-%{version}-%{release_name}/vendor
BUILD_ID="0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')"
function gobuild { go build -mod=vendor -a -ldflags "-B $BUILD_ID" -v -x "$@"; }
function gobuild { go build -mod=vendor -a -ldflags "-B $BUILD_ID" -v -x "$@" -buildmode=pie; }
gobuild -o dbus-generator
%install
@ -40,6 +40,9 @@ install -Dm755 dbus-generator %{buildroot}%{_bindir}/dbus-generator
%{_bindir}/dbus-generator
%changelog
* Mon Apr 03 2023 liweiganga <liweiganga@uniontech.com> - 0.6.6-4
- feat: fix pie
* Wed Dec 21 2022 liweiganga <liweiganga@uniontech.com> - 0.6.6-3
- enable debuginfo for fix strip