aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-06 08:59:58 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-06 08:59:58 +0000
commit842c9b44a8ef6ddab982923538713f6789812ad6 (patch)
tree317fe22d747900c6bdc65b1a2a2b269d875bba29 /Makefile.am
parent81ef1e9d043f826db9c00234d32a45f0e6eac186 (diff)
downloadrpm-setup-842c9b44a8ef6ddab982923538713f6789812ad6.tar
rpm-setup-842c9b44a8ef6ddab982923538713f6789812ad6.tar.gz
rpm-setup-842c9b44a8ef6ddab982923538713f6789812ad6.tar.bz2
rpm-setup-842c9b44a8ef6ddab982923538713f6789812ad6.tar.xz
rpm-setup-842c9b44a8ef6ddab982923538713f6789812ad6.zip
set %_host_cpu32 (used instead of %_host_cpu when run through linux32)
(cf patch rpm-4.4.8-use_host_cpu32-when-linux32.patch in rpm)
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 39cd03b..808e6bb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -41,6 +41,8 @@ pkg_scripts_in = $(pkg_gscripts:=.in)
BUILT_SOURCES = macros-perarch make_macrosfiles.sh rpmgenplatform
+HOST_CPU32_MACRO = $(if $(CANONTARGETCPU32),%_host_cpu32 $(CANONTARGETCPU32),\#%_host_cpu32)
+
pkglibdir = @RPMVENDORDIR@
noinst_PROGRAMS = rpmeval
@@ -79,6 +81,7 @@ edit = sed \
-e 's,@RPMSYSCONFDIR\@,$(RPMSYSCONFDIR),g'\
-e 's,@RPMOS\@,$(RPMOS),g' \
-e 's,@CANONTARGETCPU\@,$(CANONTARGETCPU),g' \
+ -e 's,@HOST_CPU32_MACRO\@,$(HOST_CPU32_MACRO),g' \
-e 's,@RPMALLARCH\@,$(RPMALLARCH),g'
%: %.in Makefile