forked from pool/avr-libc
		
	- 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:
		@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user