Add %{?_gnu} to _target_platform.

Use --host, --build, --target and --program-prefix in %configure.
7.3.92-4
This commit is contained in:
Jens Petersen 2002-06-28 05:25:23 +00:00
parent f6a0040f2b
commit cb63b82a2d
2 changed files with 12 additions and 3 deletions

6
macros
View File

@ -6,7 +6,7 @@
%_vendor redhat %_vendor redhat
%_os linux %_os linux
%_gnu -gnu %_gnu -gnu
%_target_platform %{_target_cpu}-%{_vendor}-%{_target_os} %_target_platform %{_target_cpu}-%{_vendor}-%{_target_os}%{?_gnu}
#============================================================================== #==============================================================================
# ---- configure macros. # ---- configure macros.
@ -37,7 +37,9 @@
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \ CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \ CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \ FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
./configure %{_target_platform} \\\ ./configure --host=%{_host} --build=%{_build} \\\
--target=%{_target_platform} \\\
--program-prefix=%{?_program_prefix:%{_program_prefix}} \\\
--prefix=%{_prefix} \\\ --prefix=%{_prefix} \\\
--exec-prefix=%{_exec_prefix} \\\ --exec-prefix=%{_exec_prefix} \\\
--bindir=%{_bindir} \\\ --bindir=%{_bindir} \\\

View File

@ -1,7 +1,7 @@
Summary: Red Hat specific rpm configuration files. Summary: Red Hat specific rpm configuration files.
Name: redhat-rpm-config Name: redhat-rpm-config
Version: 7.3.92 Version: 7.3.92
Release: 2 Release: 4
License: GPL License: GPL
Group: Development/System Group: Development/System
Source: redhat-rpm-config-%{version}.tar.gz Source: redhat-rpm-config-%{version}.tar.gz
@ -27,6 +27,13 @@ rm -rf ${RPM_BUILD_ROOT}
%{_prefix}/lib/rpm/redhat %{_prefix}/lib/rpm/redhat
%changelog %changelog
* Wed Jun 26 2002 Jens Petersen <petersen@redhat.com> 7.3.92-4
- fix %configure targetting for autoconf-2.5x (#58468)
- include ~/.rpmmacros in macrofiles file path again
* Fri Jun 21 2002 Tim Powers <timp@redhat.com> 7.3.92-3
- automated rebuild
* Fri Jun 21 2002 Elliot Lee <sopwith@redhat.com> 7.3.92-2 * Fri Jun 21 2002 Elliot Lee <sopwith@redhat.com> 7.3.92-2
- Don't define _arch - Don't define _arch