-
Notifications
You must be signed in to change notification settings - Fork 6
License
lhzhang/compiler
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Dependencies:
cmake-2.8.1 or later
1. Create a build directory and go there
% mkdir $BUILDDIR
% cd $BUILDDIR
2. Run cmake
% cmake -DCMAKE_INSTALL_PREFIX=$INSTDIR $SOURCEDIR
Possible options (incomplete list):
-DPATH64_ENABLE_TARGETS=<targets> e.g. "x86_64"
-DCMAKE_BUILD_TYPE=<Debug|Release>
-DCMAKE_Fortran_COMPILER=<compiler>
-DPATH64_ENABLE_MATHLIBS=<ON|OFF>
-DPATH64_ENABLE_HUGEPAGES=<ON|OFF>
Options that should be specified for each target in <targets>:
-DPSC_CRT_PATH_<target>=<path to crt1.o, crti.o, crtn.o>
-DPSC_DYNAMIC_LINKER_<target>=<path to dynamic linker>
-DPSC_LIBSUPCPP_PATH_<target>=<path to libsupc++ library>
-DPSC_LIBSTDCPP_PATH_<target>=<path to libstdc++ library>
-DPSC_LIBGCC_PATH_<target>=<path to libgcc library>
-DPSC_LIBGCC_EH_PATH_<target>=<path to libgcc_eh library>
-DPSC_LIBGCC_S_PATH_<target>=<path to libgcc_s library>
Example for x86_64 target:
cmake -DCMAKE_BUILD_TYPE=Debug \
-DPATH64_ENABLE_TARGETS="x86_64" \
-DPATH64_ENABLE_MATHLIBS=ON \
-DPATH64_ENABLE_FORTRAN=ON \
-DPSC_CRT_PATH_x86_64=/usr/lib64 \
-DPSC_DYNAMIC_LINKER_x86_64=/lib/ld-linux-x86-64.so.2 \
-DPSC_LIBSUPCPP_PATH_x86_64=/usr/lib/gcc/x86_64-linux-gnu/4.4 \
-DPSC_LIBSTDCPP_PATH_x86_64=/usr/lib/gcc/x86_64-linux-gnu/4.4 \
-DPSC_LIBGCC_PATH_x86_64=/usr/lib/gcc/x86_64-linux-gnu/4.4 \
-DPSC_LIBGCC_EH_PATH_x86_64=/usr/lib/gcc/x86_64-linux-gnu/4.4 \
-DPSC_LIBGCC_S_PATH_x86_64=/usr/lib/gcc/x86_64-linux-gnu/4.4 \
<path_to_sources>
3. Run make:
% make
To increase build verbosity
% make VERBOSE=1
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published