feat: fix pie

Signed-off-by: leeffo <liweiganga@uniontech.com>
This commit is contained in:
leeffo 2023-04-03 05:42:15 +00:00 committed by Gitee
parent 547e1c0a50
commit 56ddd846f7
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