aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am9
-rw-r--r--macros.in5
2 files changed, 5 insertions, 9 deletions
diff --git a/Makefile.am b/Makefile.am
index 808e6bb..4ff89e6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -12,7 +12,8 @@ pkg_gdata = \
pkg_data_in = $(pkg_gdata:=.in)
pkg_gconfig = \
- platform
+ platform \
+ $(if $(CANONTARGETCPU32), platform32, )
pkg_scripts = \
brp-compress \
@@ -41,8 +42,6 @@ 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
@@ -81,7 +80,6 @@ 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
@@ -94,6 +92,9 @@ edit = sed \
platform: rpmgenplatform Makefile
perl rpmgenplatform $(CANONTARGETCPU) > $@
+platform32: rpmgenplatform Makefile
+ perl rpmgenplatform $(CANONTARGETCPU32) > $@
+
install-data-local: $(macrosfiles) $(pkg_gconfig)
for i in $(RPMALLARCH); do \
$(mkinstalldirs) $(DESTDIR)$(RPMVENDORDIR)/$${i}-$(RPMOS); \
diff --git a/macros.in b/macros.in
index 0d0e85b..ee53095 100644
--- a/macros.in
+++ b/macros.in
@@ -18,11 +18,6 @@
%_host %{_host_cpu}-%{_real_vendor}-%{_host_os}
-# %_host_cpu32 is used instead of %_host_cpu when run through linux32
-# (cf patch rpm-4.4.8-use_host_cpu32-when-linux32.patch in rpm)
-# (nb: %_host_cpu is set by /usr/lib/rpm/macros)
-@HOST_CPU32_MACRO@
-
#==============================================================================
# Macro naming conventions (preliminary):
#