feat: fix pie

Signed-off-by: leeffo <liweiganga@uniontech.com>
(cherry picked from commit 56ddd846f706b4a022dbfcf5ce008cc0ba42cf5b)
This commit is contained in:
leeffo 2023-04-03 05:42:15 +00:00 committed by openeuler-sync-bot
parent ba2beddb2a
commit 0eebc46ea5

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