mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Clean path when building autoconf and automake.
Autoconf hard codes paths into itself. This change is a first pass at allowing a clean environment to let automake build. The ability to 'make install DESTDIR=xxx' autoconf then use it to build automake needs a clean environment. The purpose is to allow a prefix that needs root without building and packaging when root.
This commit is contained in:
@@ -31,10 +31,15 @@ cd autoconf-%{autoconf_version}
|
||||
cd ..
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
if test "%{_internal_autotools}" == "yes"; then
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
else
|
||||
export PATH=$SB_ORIG_PATH
|
||||
fi
|
||||
|
||||
cd autoconf-%{autoconf_version}
|
||||
|
||||
if "%{_internal_autotools}" == "yes"; then
|
||||
if test "%{_internal_autotools}" == "yes"; then
|
||||
ac_prefix=$SB_TMPPREFIX
|
||||
else
|
||||
ac_prefix=%{_prefix}
|
||||
|
@@ -31,11 +31,15 @@ cd automake-%{automake_version}
|
||||
cd ..
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
if test "%{_internal_autotools}" == "yes"; then
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
else
|
||||
export PATH=$SB_ORIG_PATH
|
||||
fi
|
||||
|
||||
cd automake-%{automake_version}
|
||||
|
||||
if "%{_internal_autotools}" == "yes"; then
|
||||
if test "%{_internal_autotools}" == "yes"; then
|
||||
am_prefix=$SB_TMPPREFIX
|
||||
else
|
||||
am_prefix=%{_prefix}
|
||||
|
Reference in New Issue
Block a user