Add pie and bind_now flags
This commit is contained in:
parent
487ad625f7
commit
fbb9631834
25
add-pie-and-bind_now-flags.patch
Normal file
25
add-pie-and-bind_now-flags.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From 678155eaeafa82ebdbebeed7567d54558c22538e Mon Sep 17 00:00:00 2001
|
||||
From: wang_yue111 <648774160@qq.com>
|
||||
Date: Wed, 8 Sep 2021 16:05:12 +0800
|
||||
Subject: [PATCH] Add pie and bind_now flags
|
||||
|
||||
---
|
||||
src/Makefile.in | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index 09e1d08..5f8b34a 100644
|
||||
--- a/src/Makefile.in
|
||||
+++ b/src/Makefile.in
|
||||
@@ -1077,7 +1077,7 @@ supermin_LDADD = ../lib/libgnu.a
|
||||
supermin_LINK = \
|
||||
./supermin-link.sh \
|
||||
$(OCAMLFIND) $(BEST) $(OCAMLFLAGS) $(OCAMLPACKAGES) \
|
||||
- $(OBJECTS) -o $@
|
||||
+ $(OBJECTS) -cclib "-pie -Wl,-z,now" -o $@
|
||||
|
||||
BUILT_SOURCES = format-ext2-init-bin.h
|
||||
SUFFIXES = .cmo .cmi .cmx .ml .mli .mll .mly
|
||||
--
|
||||
2.23.0
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Name: supermin
|
||||
Version: 5.1.19
|
||||
Release: 11
|
||||
Release: 12
|
||||
Summary: A tool for building supermin appliances, required by libguestfs
|
||||
License: GPLv2+
|
||||
URL: http://libguestfs.org/
|
||||
@ -10,6 +10,7 @@ Source2: supermin-find-requires
|
||||
Patch0001: 0001-Fix-Bytes-String-for-OCaml-4.06.patch
|
||||
Patch0002: 0002-use-installed-packages-instead-of-dnf-downloading.patch
|
||||
Patch9000: 9000-fix-cannot-detect-package-manager-on-openeuler.patch
|
||||
Patch9001: add-pie-and-bind_now-flags.patch
|
||||
BuildRequires: augeas dietlibc-devel dnf dnf-plugins-core e2fsprogs-devel
|
||||
BuildRequires: findutils gnupg2 grubby hivex kernel ocaml ocaml-findlib-devel
|
||||
BuildRequires: rpm rpm-devel systemd-udev tar
|
||||
@ -67,6 +68,9 @@ install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT%{_rpmconfigdir}/
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Wed Sep 08 2021 wangyue <wangyue92@huawei.com> - 5.1.19-12
|
||||
- Add pie and bind_now flags
|
||||
|
||||
* Wed Dec 16 2020 maminjie <maminjie1@huawei.com> - 5.1.19-11
|
||||
- Use installed packages instead of dnf downloading
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user