- %_gnu appended to %_target_platform
- %_gnu is -gnueabi for gnueabi targets
This commit is contained in:
parent
427194b25b
commit
ddab849441
@ -860,6 +860,7 @@ elif echo "$build_os" | grep sunos > /dev/null; then
|
||||
AC_LIBOBJ(myrealloc)
|
||||
fi
|
||||
|
||||
RPMCANONGNU="-gnu"
|
||||
#
|
||||
# get rid of the 4-th tuple, if config.guess returned "linux-gnu" for build_os
|
||||
#
|
||||
@ -869,6 +870,10 @@ fi
|
||||
if echo "$build_os" | grep '.*-gnu' > /dev/null ; then
|
||||
build_os=`echo "${build_os}" | sed 's/-gnu$//'`
|
||||
fi
|
||||
if echo "$build_os" | grep '.*-gnueabi' > /dev/null ; then
|
||||
build_os=`echo "${build_os}" | sed 's/-gnueabi$//'`
|
||||
RPMCANONGNU="-gnueabi"
|
||||
fi
|
||||
|
||||
changequote(<, >)
|
||||
build_os_exact="${build_os}"
|
||||
@ -911,6 +916,7 @@ RPMCANONOS="$build_os_noversion"
|
||||
AC_SUBST(RPMCANONARCH)
|
||||
AC_SUBST(RPMCANONVENDOR)
|
||||
AC_SUBST(RPMCANONOS)
|
||||
AC_SUBST(RPMCANONGNU)
|
||||
|
||||
if test X"$prefix" = XNONE ; then
|
||||
usrprefix="$ac_default_prefix"
|
||||
|
@ -6,8 +6,8 @@
|
||||
%_arch @RPMRC_ARCH@
|
||||
%_vendor @RPMCANONVENDOR@
|
||||
%_os @RPMCANONOS@
|
||||
%_gnu -gnu
|
||||
%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os}
|
||||
%_gnu @RPMCANONGNU@
|
||||
%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os}%{_gnu}
|
||||
%optflags @RPMRC_OPTFLAGS@
|
||||
|
||||
#==============================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user