/usr/include/CLHEP/Exceptions/arch_spec_Exceptions.mk is in libclhep-dev 2.1.2.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | # ======================================================================
#
# arch_spec_Exceptions.mk - Architecture/site-specific makefile fragment
# for inclusion by packages that use Zoom's Exceptions package.
#
# History:
# 08-Feb-2000 WEB Extracted from ZMutility/zoom.symbols.mk; updated
# logic reflecting KAI 3.3+ defaults; moved into Exceptions package
# (could later be moved into SoftRelTools package, if suffient use)
# 30-May-2002 WEB Updated logic for post-egcs versions of gcc
#
# ======================================================================
# ----------------------------------------------------------------------
# Prepare for SRT package specialization logic:
# ----------------------------------------------------------------------
extpkg := Exceptions
# ----------------------------------------------------------------------
# Note whether exception-handling is disabled:
# ----------------------------------------------------------------------
Exceptions_USED := yes # assume exceptions are enabled
ifeq ($(CXX),KCC) # KCC 3.3 onward defaults to "--exceptions"
ifeq ($(filter --no_exceptions,$(CXXFLAGS)),--no_exceptions)
Exceptions_USED := no
endif
endif # KCC
#ifeq ($(CXX),g++) # egcs required "-fhandle-exceptions" and "-frtti"
# ifeq ($(filter -fhandle-exceptions,$(CXXFLAGS)),)
# Exceptions_USED := no
# endif
# ifeq ($(filter -frtti,$(CXXFLAGS)),)
# Exceptions_USED := no
# endif
#endif # g++
ifeq ($(CXX),g++) # gcc 2.95.2 onward defaults to "-fexceptions"
ifeq ($(filter -fno_exceptions,$(CXXFLAGS)),-fno_exceptions)
Exceptions_USED := no
endif
endif # g++
# ----------------------------------------------------------------------
# Connect to SRT package specialization logic:
# ----------------------------------------------------------------------
include SoftRelTools/specialize_arch_spec.mk
include SoftRelTools/arch_spec_clhep.mk
# ----------------------------------------------------------------------
# Define DEFECT_NO_EXCEPTIONS if exceptions are not used
# (in order to force an abort() call instead of a throw
# in packages that employ Zoom's Exceptions package):
# ----------------------------------------------------------------------
ifeq ($(Exceptions_USED),no)
# avoid duplicate:
ifneq ($(filter -DDEFECT_NO_EXCEPTIONS,$(CPPFLAGS)),-DDEFECT_NO_EXCEPTIONS)
override CPPFLAGS += -DDEFECT_NO_EXCEPTIONS
endif
endif # $(Exceptions_USED) == no
|