forked from pool/glibc
Accepting request 1073567 from home:Andreas_Schwab:Factory
- Exclude static archives from preparation for live patching (bnc#1208721) OBS-URL: https://build.opensuse.org/request/show/1073567 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=647
This commit is contained in:
parent
b928a76c1b
commit
23e1372019
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 16 15:41:56 UTC 2023 - Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
- Exclude static archives from preparation for live patching (bnc#1208721)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Feb 1 16:06:35 UTC 2023 - Andreas Schwab <schwab@suse.de>
|
Wed Feb 1 16:06:35 UTC 2023 - Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
22
glibc.spec
22
glibc.spec
@ -51,9 +51,9 @@
|
|||||||
|
|
||||||
# Enable support for livepatching.
|
# Enable support for livepatching.
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
%bcond_without livepatching 1
|
%bcond_without livepatching
|
||||||
%else
|
%else
|
||||||
%bcond_with livepatching 0
|
%bcond_with livepatching
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%bcond_with build_all
|
%bcond_with build_all
|
||||||
@ -621,15 +621,6 @@ BuildCCplus=%{cross_arch}-suse-linux-g++
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Add build flags that cannot be passed to configure.
|
|
||||||
ExtraBuildFlags=
|
|
||||||
%if %{build_main} && %{with livepatching}
|
|
||||||
# Append necessary flags for livepatch support, if enabled. Do it on make, else
|
|
||||||
# on configure GCC will report that it can't write the ipa-clones to /dev/ and
|
|
||||||
# configure will fail to detect that gcc support several flags.
|
|
||||||
ExtraBuildFlags+="-fpatchable-function-entry=16,14 -fdump-ipa-clones"
|
|
||||||
%endif
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build base glibc
|
# Build base glibc
|
||||||
#
|
#
|
||||||
@ -691,7 +682,14 @@ profile="--disable-profile"
|
|||||||
exit $rc;
|
exit $rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
make %{?_smp_mflags} %{?make_output_sync} CFLAGS="$BuildFlags $ExtraBuildFlags"
|
%if %{build_main} && %{with livepatching}
|
||||||
|
# Append necessary flags for livepatch support, if enabled. Only objects
|
||||||
|
# included in shared libraries should be prepared for live patching.
|
||||||
|
echo 'CFLAGS-.os += -fpatchable-function-entry=16,14 -fdump-ipa-clones' \
|
||||||
|
>> Makeconfig
|
||||||
|
%endif
|
||||||
|
|
||||||
|
make %{?_smp_mflags} %{?make_output_sync}
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user