From b7baa2504eccc4e62a4b302d9b2cc164daa62516 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Tue, 24 Feb 2015 16:23:14 -0600 Subject: [PATCH] Only build Cap5.so for the host architecture --- src/cap5/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cap5/Makefile b/src/cap5/Makefile index ba145eb11..41c66a51c 100644 --- a/src/cap5/Makefile +++ b/src/cap5/Makefile @@ -25,9 +25,8 @@ PERL_VERSION = $(shell $(PERL) ../perlConfig.pl version) PERL_ARCHNAME = $(shell $(PERL) ../perlConfig.pl archname) PERL_ARCHPATH = $(PERL_VERSION)/$(PERL_ARCHNAME) -ifeq ($(findstring Host,$(VALID_BUILDS)),Host) -ifeq ($(findstring $(OS_CLASS),WIN32 cygwin32),) - # Doesn't build on WIN32 +ifeq ($(T_A),$(EPICS_HOST_ARCH)) # No cross-builds (wrong Perl!) +ifeq ($(findstring $(OS_CLASS),WIN32 cygwin32),) # Doesn't build on WIN32 LOADABLE_LIBRARY_HOST = Cap5 PERL_SCRIPTS += cainfo.pl