Add safe compilation options PIE/pie/PIC
Signed-off-by: wguanghao <wuguanghao3@huawei.com>
This commit is contained in:
parent
3a511ea1a3
commit
c8328c302f
@ -1,6 +1,6 @@
|
||||
Name: squashfs-tools
|
||||
Version: 4.5.1
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Utility for the squashfs filesystems
|
||||
License: GPLv2+
|
||||
URL: http://squashfs.sourceforge.net/
|
||||
@ -19,7 +19,7 @@ and directories.
|
||||
%autosetup -n squashfs-tools-%{version} -p1
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" XZ_SUPPORT=1 LZO_SUPPORT=1 LZMA_XZ_SUPPORT=1 LZ4_SUPPORT=1 ZSTD_SUPPORT=1 \
|
||||
CFLAGS="%{optflags} -fPIE -pie -fPIC" XZ_SUPPORT=1 LZO_SUPPORT=1 LZMA_XZ_SUPPORT=1 LZ4_SUPPORT=1 ZSTD_SUPPORT=1 \
|
||||
%make_build -C squashfs-tools
|
||||
|
||||
%install
|
||||
@ -36,6 +36,9 @@ install -D -m 755 squashfs-tools/unsquashfs %{buildroot}%{_sbindir}/unsquashfs
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Mar 8 2023 wuguanghao <wuguanghao3@huawei.com> - 4.5.1-2
|
||||
- add safe compilation options PIE/pie/PIC
|
||||
|
||||
* Sat Aug 13 2022 volcanodragon <linfeilong@huawei.com> - 4.5.1-1
|
||||
- update version to 4.5.1
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user