Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ingogoeppert:work:gcc12
newlib
newlib.spec.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File newlib.spec.patch of Package newlib
--- org/newlib.spec 2023-04-24 18:04:23.063308712 +0200 +++ patched/newlib.spec 2023-04-24 18:06:10.988313100 +0200 @@ -15,6 +15,11 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # +# Compatible to the configuration of the corepondig package for arch linux +%define arch_compat 1 + +# Force the same gcc is used for arm builds +%define gcc_version 12 %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "" @@ -54,6 +59,8 @@ Patch1: epiphany-fixes.diff %if "%{flavor}" == "" BuildArch: noarch +# Disable build, newlib for noarch is not needed in this repo +ExclusiveArch: do_not_build %else BuildRequires: cross-%{gcc_cross_arch}-gcc%{gcc_version}-bootstrap BuildRequires: fdupes @@ -82,13 +89,27 @@ export CFLAGS_FOR_TARGET="-O2 -g -ffunction-sections -fdata-sections" FEATURES="--disable-nls" if [[ "${variant}" == "nano" ]]; then +%if %{arch_compat} + export CFLAGS_FOR_TARGET="-Os -g -ffunction-sections -fdata-sections" +%else export CFLAGS_FOR_TARGET="-Os -g" - FEATURES="${FEATURES} --enable-newlib-nano-malloc --enable-lite-exit --enable-newlib-nano-formatted-io --disable-newlib-supplied-syscalls" +%endif + FEATURES="${FEATURES} --enable-newlib-nano-malloc --enable-lite-exit --enable-newlib-nano-formatted-io" fi ../configure \ --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} --infodir=%{_infodir} \ --target=%{target} \ --with-build-sysroot=%{sysroot} \ + --disable-newlib-supplied-syscalls \ +%if %{arch_compat} + --enable-newlib-reent-small \ + --enable-newlib-retargetable-locking \ + --disable-newlib-fvwrite-in-streamio \ + --disable-newlib-fseek-optimization \ + --disable-newlib-wide-orient \ + --disable-newlib-unbuf-stream-opt \ + --enable-newlib-global-atexit \ +%endif $FEATURES \ %ifarch %{ix86} %if 0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor