- Adjust sysroot to /usr/avr/sys-root as agreed upon by gcc and binutils.

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/avr-libc?expand=0&rev=4
This commit is contained in:
Richard Biener 2017-12-12 14:40:09 +00:00 committed by Git OBS Bridge
parent 158efc1c98
commit 26c60eab3d
2 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Dec 12 14:39:35 UTC 2017 - rguenther@suse.com
- Adjust sysroot to /usr/avr/sys-root as agreed upon by gcc and binutils.
-------------------------------------------------------------------
Tue Dec 12 14:27:02 UTC 2017 - rguenther@suse.com

View File

@ -16,10 +16,10 @@
#
%define into_usr_avr 1
%define into_sysroot 1
%define doc_vers %{version}
%if %{into_usr_avr}
%define PREFIX /usr/avr
%if %{into_sysroot}
%define PREFIX /usr/avr/sys-root
%else
# FIXME:
# okay, FHS 2.2, if you forbid the obvious choices, can you also suggest a better place?
@ -113,9 +113,9 @@ make test CFLAGS="-Wall -g -Os -mint8 -I$RPM_BUILD_ROOT%PREFIX/avr/include/ -L$R
%files
%defattr (-, root, root)
%doc %{_docdir}/%{name}
%if %{into_usr_avr}
%dir /usr/avr
/usr/avr/*
%if %{into_sysroot}
%dir %{PREFIX}
%{PREFIX}/*
%else
%{_prefix}/*
%endif