feat: fix pie
Signed-off-by: leeffo <liweiganga@uniontech.com> (cherry picked from commit 56ddd846f706b4a022dbfcf5ce008cc0ba42cf5b)
This commit is contained in:
parent
ba2beddb2a
commit
0eebc46ea5
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
Name: deepin-dbus-generator
|
Name: deepin-dbus-generator
|
||||||
Version: 0.6.6
|
Version: 0.6.6
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Convert dbus interfaces to go-lang or qml wrapper code
|
Summary: Convert dbus interfaces to go-lang or qml wrapper code
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: https://github.com/linuxdeepin/go-dbus-generator
|
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
|
%build
|
||||||
export GOPATH=%{_builddir}/%{name}-%{version}-%{release_name}/vendor
|
export GOPATH=%{_builddir}/%{name}-%{version}-%{release_name}/vendor
|
||||||
BUILD_ID="0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')"
|
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
|
gobuild -o dbus-generator
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -40,6 +40,9 @@ install -Dm755 dbus-generator %{buildroot}%{_bindir}/dbus-generator
|
|||||||
%{_bindir}/dbus-generator
|
%{_bindir}/dbus-generator
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Dec 21 2022 liweiganga <liweiganga@uniontech.com> - 0.6.6-3
|
||||||
- enable debuginfo for fix strip
|
- enable debuginfo for fix strip
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user