gcc-4.8-root: $GCC48_ROOT/bin
gcc-4.8-cxx: g++-4.8
gcc-4.8-cc: gcc-4.8
-gcc-4.8-ldflags: -L$GCC48_ROOT/lib -Wl,-rpath=$GCC48_ROOT/lib
+gcc-4.8-exe-ldflags: -L$GCC48_ROOT/lib -Wl,-rpath=$GCC48_ROOT/lib
gcc-4.8-extlib: rt
gcc-4.8-boost: $BOOST_ROOT
gcc-4.8-64-boost-lib: stage64-gcc4.8/lib
gcc-4.9-root: $GCC49_ROOT/bin
gcc-4.9-cxx: g++-4.9
gcc-4.9-cc: gcc-4.9
-gcc-4.9-ldflags: -Wl,-rpath=$GCC49_ROOT/lib64
+gcc-4.9-exe-ldflags: -Wl,-rpath=$GCC49_ROOT/lib64
gcc-4.9-extlib: rt
gcc-4.9-boost: $BOOST_ROOT
gcc-4.9-64-boost-lib: stage64-gcc4.9/lib
gcc-5-cxx: g++-5
gcc-5-cc: gcc-5
gcc-5-boost: $BOOST_ROOT
-gcc-5-ldflags: -Wl,-rpath=$GCC5_ROOT/lib64
+gcc-5-exe-ldflags: -Wl,-rpath=$GCC5_ROOT/lib64
gcc-5-extlib: rt
gcc-5-64-boost-lib: stage64-gcc5/lib
gcc-5-64-asan-boost-lib: stage64-gcc5-asan
gcc-6-cxx: g++-6
gcc-6-cc: gcc-6
gcc-6-boost: $BOOST_ROOT
-gcc-6-ldflags: -Wl,-rpath=$GCC6_ROOT/lib64
+gcc-6-exe-ldflags: -Wl,-rpath=$GCC6_ROOT/lib64
gcc-6-extlib: rt
gcc-6-64-boost-lib: stage64-gcc6/lib
gcc-6-64-asan-boost-lib: stage64-gcc6-asan
clang-3.6-ld-lib-path: $GCC5_ROOT/lib64
clang-3.6-cxx: clang++
clang-3.6-cc: clang
-clang-3.6-cxxflags: -Wdocumentation
-clang-3.6-ldflags: -Wl,-rpath=$GCC5_ROOT/lib64
-clang-3.6-extlib: rt atomic
+clang-3.6-cxxflags: -Wdocumentation
+clang-3.6-exe-ldflags: -L$GCC5_ROOT/lib64 -latomic -Wl,-rpath=$GCC5_ROOT/lib64
+clang-3.6-extlib: rt
clang-3.6-boost: $BOOST_ROOT
clang-3.6-64-boost-lib: stage64-clang3.6/lib
clang-3.6-gtest: $GTEST_ROOT
clang-3.7-cxx: clang++
clang-3.7-cc: clang
clang-3.7-cxxflags: -stdlib=libc++ -Wdocumentation
-clang-3.7-ldflags: -L$CLANG37_ROOT/lib -Wl,-rpath=$CLANG37_ROOT/lib
+clang-3.7-exe-ldflags: -L$CLANG37_ROOT/lib-Wl, -rpath=$CLANG37_ROOT/lib
clang-3.7-extlib: rt c++abi
clang-3.7-boost: $BOOST_ROOT
clang-3.7-64-boost-lib: stage64-clang3.7/lib
clang-3.8-cxx: clang++
clang-3.8-cc: clang
clang-3.8-cxxflags: -stdlib=libc++ -Wdocumentation
-clang-3.8-ldflags: -L$CLANG38_ROOT/lib -Wl,-rpath=$CLANG38_ROOT/lib
+clang-3.8-exe-ldflags: -L$CLANG38_ROOT/lib -Wl,-rpath=$CLANG38_ROOT/lib
clang-3.8-extlib: rt
clang-3.8-boost: $BOOST_ROOT
clang-3.8-64-boost-lib: stage64-clang3.8/lib
clang-3.9-cxx: clang++
clang-3.9-cc: clang
clang-3.9-cxxflags: -stdlib=libc++ -Wdocumentation
-clang-3.9-ldflags: -L$CLANG39_ROOT/lib -Wl,-rpath=$CLANG39_ROOT/lib
+clang-3.9-exe-ldflags: -L$CLANG39_ROOT/lib -Wl,-rpath=$CLANG39_ROOT/lib
clang-3.9-extlib: rt
clang-3.9-boost: $BOOST_ROOT
clang-3.9-64-boost-lib: stage64-clang3.9/lib
gcc-4.8-root: $GCC48_ROOT/bin
gcc-4.8-cxx: g++-4.8
gcc-4.8-cc: gcc-4.8
-gcc-4.8-ldflags: -L$GCC48_ROOT/lib -Wl,-rpath=$GCC48_ROOT/lib
+gcc-4.8-exe-ldflags: -L$GCC48_ROOT/lib -Wl,-rpath=$GCC48_ROOT/lib
gcc-4.8-boost: $BOOST_ROOT
gcc-4.8-64-boost-lib: stage64-gcc4.8/lib
gcc-4.8-gtest: $GTEST_ROOT
gcc-4.9-root: $GCC49_ROOT/bin
gcc-4.9-cxx: g++-4.9
gcc-4.9-cc: gcc-4.9
-gcc-4.9-ldflags: -Wl,-rpath=$GCC49_ROOT/lib64
+gcc-4.9-exe-ldflags: -Wl,-rpath=$GCC49_ROOT/lib64
gcc-4.9-boost: $BOOST_ROOT
gcc-4.9-64-boost-lib: stage64-gcc4.9/lib
gcc-4.9-gtest: $GTEST_ROOT
gcc-5-cxx: g++-5
gcc-5-cc: gcc-5
gcc-5-boost: $BOOST_ROOT
-gcc-5-ldflags: -Wl,-rpath=$GCC5_ROOT/lib64
+gcc-5-exe-ldflags: -Wl,-rpath=$GCC5_ROOT/lib64
gcc-5-64-boost-lib: stage64-gcc5/lib
gcc-5-64-asan-boost-lib: stage64-gcc5-asan
gcc-5-64-tsan-boost-lib: stage64-gcc5-tsan
gcc-6-cxx: g++-6
gcc-6-cc: gcc-6
gcc-6-boost: $BOOST_ROOT
-gcc-6-ldflags: -Wl,-rpath=$GCC6_ROOT/lib64
+gcc-6-exe-ldflags: -Wl,-rpath=$GCC6_ROOT/lib64
gcc-6-64-boost-lib: stage64-gcc6/lib
gcc-6-64-asan-boost-lib: stage64-gcc6-asan
gcc-6-64-tsan-boost-lib: stage64-gcc6-tsan
clang-3.6-cxx: clang++
clang-3.6-cc: clang
clang-3.6-cxxflags: -Wdocumentation
+clang-3.6-exe-ldflags: -L$GCC5_ROOT/lib64 -latomic -Wl,-rpath=$GCC5_ROOT/lib64
clang-3.6-boost: $BOOST_ROOT
clang-3.6-64-boost-lib: stage64-clang3.6/lib
clang-3.6-gtest: $GTEST_ROOT
clang-3.7-cxx: clang++
clang-3.7-cc: clang
clang-3.7-cxxflags: -stdlib=libc++ -Wdocumentation
-clang-3.7-ldflags: -L$CLANG37_ROOT/lib -Wl,-rpath=$CLANG37_ROOT/lib -lc++abi
+clang-3.7-exe-ldflags: -L$CLANG37_ROOT/lib -Wl,-rpath=$CLANG37_ROOT/lib -lc++abi
clang-3.7-boost: $BOOST_ROOT
clang-3.7-64-boost-lib: stage64-clang3.7/lib
clang-3.7-gtest: $GTEST_ROOT
clang-3.8-cxx: clang++
clang-3.8-cc: clang
clang-3.8-cxxflags: -stdlib=libc++ -Wdocumentation
-clang-3.8-ldflags: -L$CLANG38_ROOT/lib -Wl,-rpath=$CLANG38_ROOT/lib
+clang-3.8-exe-ldflags: -L$CLANG38_ROOT/lib -Wl,-rpath=$CLANG38_ROOT/lib
clang-3.8-boost: $BOOST_ROOT
clang-3.8-64-boost-lib: stage64-clang3.8/lib
clang-3.8-gtest: $GTEST_ROOT
clang-3.9-cxx: clang++
clang-3.9-cc: clang
clang-3.9-cxxflags: -stdlib=libc++ -Wdocumentation
-clang-3.9-ldflags: -L$CLANG39_ROOT/lib -Wl,-rpath=$CLANG39_ROOT/lib
+clang-3.9-exe-ldflags: -L$CLANG39_ROOT/lib -Wl,-rpath=$CLANG39_ROOT/lib
clang-3.9-boost: $BOOST_ROOT
clang-3.9-64-boost-lib: stage64-clang3.9/lib
clang-3.9-64-asan-boost-lib: stage64-clang3.9-asan
my $cc=get_prop("cc") or $compiler;
my $cxxflags=get_prop("cxxflags");
my $ldflags=get_prop("ldflags");
+my $cmake_exe_ldflags=get_prop("exe-ldflags");
my $ext_lib=get_prop("extlib");
my $ld_lib_path=get_prop("ld-lib-path");
print $out " -DCMAKE_C_COMPILER=$comp_root/$cc \\\n";
print $out " -DCMAKE_CXX_COMPILER=$comp_root/$cxx \\\n";
print $out " -DCMAKE_CXX_FLAGS=\"$cxxflags\" \\\n" if $cxxflags;
+print $out " -DCMAKE_EXE_LINKER_FLAGS=\"$cmake_exe_ldflags\" \\\n" if $cmake_exe_ldflags;
print $out " -DCDS_BIN_DIR=\$BIN_ROOT \\\n";
print $out " -DWITH_TESTS=ON \\\n";
print $out " -DWITH_ASAN=ON \\\n" if $build eq 'asan';