diff --git a/squashfs-tools.spec b/squashfs-tools.spec index 391ca60..edf7491 100644 --- a/squashfs-tools.spec +++ b/squashfs-tools.spec @@ -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 - 4.5.1-2 +- add safe compilation options PIE/pie/PIC + * Sat Aug 13 2022 volcanodragon - 4.5.1-1 - update version to 4.5.1