Skip to content
Merged

cleanup #1128

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 8 additions & 18 deletions src/config/makefile.h
Original file line number Diff line number Diff line change
Expand Up @@ -3762,19 +3762,16 @@ endif

# lower level libs used by communication libraries
#case guard against case when tools have not been compiled yet
ifeq ("$(wildcard ${GA_PATH}/bin/ga-config)","")
else
#ifeq ("$(wildcard ${GA_PATH}/bin/ga-config)","")
#else
ifneq ($(ARMCI_NETWORK),$(findstring $(ARMCI_NETWORK), MPI-PR MPI-TS MPI-PT MPI-MT MPI3))
COMM_LIBS = $(shell ${GA_PATH}/bin/ga-config --network_ldflags)
COMM_LIBS += $(shell ${GA_PATH}/bin/ga-config --network_libs)
COMM_LIBS = $(shell $(GA_PATH)/bin/ga-config --network_ldflags)
COMM_LIBS += $(shell $(GA_PATH)/bin/ga-config --network_libs)
endif
COMM_LIBS += $(shell [ -e $(GA_PATH)/bin/comex-config ] && ${GA_PATH}/bin/comex-config --libs) -lpthread
ifdef COMM_LIBS
CORE_LIBS += $(COMM_LIBS)
endif
#comex bit
#COMM_LIBS += $(shell [ -e ${NWCHEM_TOP}/src/tools/build/comex/config.h ] && grep LIBS\ = ${NWCHEM_TOP}/src/tools/build/comex/Makefile|grep -v _LIBS| cut -b 8-) -lpthread
COMM_LIBS := $(COMM_LIBS) $(shell [ -e ${GA_PATH}/bin/comex-config ] && ${GA_PATH}/bin/comex-config --libs) -lpthread
endif
ifdef COMM_LIBS
CORE_LIBS += $(COMM_LIBS)
endif
#endif
ifdef USE_CRAYSHASTA
CORE_LIBS += -lpmi2
Expand All @@ -3783,9 +3780,6 @@ ifdef USE_LINUXAIO
CORE_LIBS += -lrt
endif

# g++ GNU compatibility (might go away)
#CORE_LIBS += -lstdc++

EXTRA_LIBS += $(CONFIG_LIBS)
CORE_LIBS += $(EXTRA_LIBS)

Expand Down Expand Up @@ -3914,8 +3908,6 @@ else
else
CORE_LIBS += -larmci
endif
else
CORE_LIBS +=
endif
endif

Expand Down Expand Up @@ -4020,8 +4012,6 @@ else
$(error )
ifdef OLD_GA
CORE_LIBS += -ltcgmsg
else
CORE_LIBS +=
endif
endif
endif
Expand Down