next up previous contents
Next: Changes to Pstream Up: Changes to Source code Previous: Changes to settings.sh   Contents

Changes to wmake/rules

We added a new crayxt directory, based on the contents of the linx64Gcc directory.

The file c++ is identical, except

c++WARN = -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter //
          -Wold-style-cast -Wnon-virtual-dtor
becomes
c++WARN = -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter //
          -Wold-style-cast
The file cOpt is identical, except
cOPT = -O3 -fno-gcse
becomes
cOPT = -O3

The file general is identical, except

LD         = ld
becomes
LD         = ld -A64

Further, we added two new files named general.orig and general.temp, where the latter is a copy of the updated general file, and the former has replaced

PROJECT_LIBS = -l$(WM_PROJECT) -Wl,--whole-archive -L$(SE_DIR)/lib/snos64 //
               -lportals -Wl,--no-whole-archive -liberty -ldl

with

 PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl

Using three files in this manner makes the compilation much smoother (see below).

The file X is changed from

 XINC       = $(XFLAGS) -I/usr/include/X11
 XLIBS      = -L/usr/lib64 -lXext -lX11
to
 XINC       = $(XFLAGS) -I/usr/X11R6/include
 XLIBS      = -L/usr/X11R6/lib64 -lXext -lX11

Finally, three new files were added: two executable binaries, namely dirToString and wmkdep, and the text file mplibMPT, which describes the locations of the required parts of Cray's MPI library. Specifically, the file contains the following lines

PFLAGS =
PINC = -I$(MPI_ARCH_PATH)/include
PLIBS = -L$(MPI_ARCH_PATH)/lib -L$(MPICH_PATH)/pmi/lib //
        -L$(MPICH_PATH)/util/lib -lmpich -lpmi -lalpslli //
        -lalpsutil -rt



Gavin J Pringle
2010-04-16