From 7ff7ee739da5ae90094d04999dd8e4baeb92eba9 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Wed, 9 Oct 2019 16:19:06 +0200 Subject: [PATCH] fix for SIGTRAP on powerbrick --- configure/os/CONFIG.Common.eldk42-ppc4xxFP | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/configure/os/CONFIG.Common.eldk42-ppc4xxFP b/configure/os/CONFIG.Common.eldk42-ppc4xxFP index 716a29931..51ba2946a 100644 --- a/configure/os/CONFIG.Common.eldk42-ppc4xxFP +++ b/configure/os/CONFIG.Common.eldk42-ppc4xxFP @@ -11,12 +11,15 @@ ELDK=/opt/eldk-4.2 GNU_TARGET=ppc_4xxFP GNU_DIR=$(ELDK)/usr -# This cross tool chain is installed in a somehow weired way +# Optimizer is buggy. Throws SIGTRAP in typeinfo for epics::pvAccess::ChannelArray +OPT_CXXFLAGS_YES += -fno-inline-functions + +ARCH_DEP_CPPFLAGS += --sysroot=$(ELDK)/$(GNU_TARGET) +ARCH_DEP_LDFLAGS = --sysroot=$(ELDK)/$(GNU_TARGET) + +# This cross tool chain is installed in a somehow weird way # Without the following lines it does not work on RHEL7 # but it worked on SL6 ARCH_DEP_CXXFLAGS += -I $(ELDK)/$(GNU_TARGET)/usr/include/c++/4.2.2 ARCH_DEP_CXXFLAGS += -I $(ELDK)/$(GNU_TARGET)/usr/include/c++/4.2.2/powerpc-linux ARCH_DEP_CXXFLAGS += -I $(ELDK)/$(GNU_TARGET)/usr/include/c++/4.2.2/backward - -ARCH_DEP_LDFLAGS += -Wl,-rpath-link,$(ELDK)/$(GNU_TARGET)/lib -ARCH_DEP_LDFLAGS += -Wl,-rpath-link,$(ELDK)/$(GNU_TARGET)/usr/lib