mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
Sync with CVS-HEAD.
This commit is contained in:
@@ -32,7 +32,8 @@
|
|||||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||||
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
|
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
|
||||||
%else
|
%else
|
||||||
CC="%{__cc} ${RPM_OPT_FLAGS}" \
|
# gcc is not ready to be compiled with -std=gnu99
|
||||||
|
CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
|
||||||
%endif
|
%endif
|
||||||
../gcc-%{gcc_pkgvers}/configure \
|
../gcc-%{gcc_pkgvers}/configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %build_objc
|
%if %build_objc
|
||||||
%setup -T -D -n %{name}-%{version} -a5
|
%setup -q -T -D -n %{name}-%{version} -a5
|
||||||
%{?PATCH5:%patch5 -p0}
|
%{?PATCH5:%patch5 -p0}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|||||||
@@ -47,3 +47,26 @@ EOF
|
|||||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
||||||
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
||||||
|
|
||||||
|
|
||||||
|
# Extract %%__debug_install_post into debug_install_post~
|
||||||
|
cat << \EOF > debug_install_post~
|
||||||
|
%__debug_install_post
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# Generate customized debug_install_post script
|
||||||
|
cat debug_install_post~ | while read a x y; do
|
||||||
|
case $a in
|
||||||
|
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
||||||
|
*/find-debuginfo.sh)
|
||||||
|
b=$(basename $a)
|
||||||
|
sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
|
||||||
|
chmod a+x $b
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
||||||
|
< debug_install_post~ > debug_install_post
|
||||||
|
%define __debug_install_post . ./debug_install_post
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user