GNU autoconf documentation says we should use $host instead of $target if we're not building a compiler. It turns out that RPM seems to have a different interpretation of that. Reverting to the previous behavior.
Signed-off-by: Klaus Heinrich Kiwi <[email protected]> --- configure.in | 4 ++-- usr/lib/Makefile.am | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 1ab980b..b31083a 100644 --- a/configure.in +++ b/configure.in @@ -9,7 +9,7 @@ cmdline_CFLAGS="$CFLAGS" AM_INIT_AUTOMAKE([foreign 1.6]) dnl Get the canonical host type -AC_CANONICAL_HOST +AC_CANONICAL_TARGET dnl Checks for header files. AC_DISABLE_STATIC @@ -41,7 +41,7 @@ AC_PATH_PROG([CHGRP], [chgrp], [/bin/chgrp]) AC_PROG_SED AC_PROG_MKDIR_P -case $host_cpu in +case $target_cpu in x86_64 | ppc64* | s390x) CFLAGS="-m64 $cmdline_CFLAGS" ;; diff --git a/usr/lib/Makefile.am b/usr/lib/Makefile.am index a76e7a9..754668d 100644 --- a/usr/lib/Makefile.am +++ b/usr/lib/Makefile.am @@ -3,8 +3,8 @@ SUBDIRS = pkcs11 install-data-hook: $(MKDIR_P) $(DESTDIR)/etc/ld.so.conf.d echo "$(libdir)/opencryptoki" >\ - $(DESTDIR)/etc/ld.so.conf.d/opencryptoki-$(host_cpu).conf + $(DESTDIR)/etc/ld.so.conf.d/opencryptoki-$(target_cpu).conf echo "$(libdir)/opencryptoki/stdll" >>\ - $(DESTDIR)/etc/ld.so.conf.d/opencryptoki-$(host_cpu).conf + $(DESTDIR)/etc/ld.so.conf.d/opencryptoki-$(target_cpu).conf echo "**** Remember you must run ldconfig before using the above settings ****" -- 1.6.6.1 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Opencryptoki-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech
