do not use fPIC in making kernel

This commit is contained in:
Grooooot 2019-12-31 15:37:12 +08:00
parent b40c454748
commit 80b532d8e2

View File

@ -6,7 +6,7 @@
%endif
%if "%{!?RELEASE:1}"
%define RELEASE 17
%define RELEASE 18
%endif
%define __debug_install_post \
@ -62,7 +62,6 @@ done
%build
cd %{_builddir}/kernel/linux/
sed -i '/ccflags-y += -Wl,-shared -Wl,-z,relro,-z,now/a\ccflags-y += -fPIC' arch/arm64/kernel/vdso/Makefile
make %{?_smp_mflags}
cd %{_builddir}/%{name}-%{version}
@ -105,6 +104,12 @@ install -p -m 640 -D ./runtime/cli/config/configuration-qemu.toml %{buildroot}/u
%changelog
* Tue Dec 31 2019 yangfeiyu<yangfeiyu2@huawei.com> - 1.0.3.18
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:Do not use fPIC in making kernel.
* Fri Nov 29 2019 yangfeiyu<yangfeiyu2@huawei.com> - 1.0.3.17
- Type:enhancement
- ID:NA