diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2012-02-26 11:27:45 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2012-02-26 11:27:45 +0000 |
commit | 183d05a0d7a563218de37a983f68c8efb6b858dc (patch) | |
tree | 953bec58dd7cee766f5560e3518ec1d328d8812a /pkgs/development/tools/build-managers | |
parent | 584ccabaac181f1f01c39bff5291612e111baf4e (diff) | |
download | nixlib-183d05a0d7a563218de37a983f68c8efb6b858dc.tar nixlib-183d05a0d7a563218de37a983f68c8efb6b858dc.tar.gz nixlib-183d05a0d7a563218de37a983f68c8efb6b858dc.tar.bz2 nixlib-183d05a0d7a563218de37a983f68c8efb6b858dc.tar.lz nixlib-183d05a0d7a563218de37a983f68c8efb6b858dc.tar.xz nixlib-183d05a0d7a563218de37a983f68c8efb6b858dc.tar.zst nixlib-183d05a0d7a563218de37a983f68c8efb6b858dc.zip |
Setting the cmake build type Release in its setup-hook, for all cmake
projects to be built in Release by default. Some packages were not getting optimisation flags, like rigsofrods. svn path=/nixpkgs/branches/stdenv-updates/; revision=32574
Diffstat (limited to 'pkgs/development/tools/build-managers')
-rwxr-xr-x | pkgs/development/tools/build-managers/cmake/setup-hook.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/tools/build-managers/cmake/setup-hook.sh b/pkgs/development/tools/build-managers/cmake/setup-hook.sh index 802c7343a854..32e0b76f608a 100755 --- a/pkgs/development/tools/build-managers/cmake/setup-hook.sh +++ b/pkgs/development/tools/build-managers/cmake/setup-hook.sh @@ -37,7 +37,8 @@ cmakeConfigurePhase() { fi # Avoid cmake resetting the rpath of binaries, on make install - cmakeFlags="-DCMAKE_SKIP_BUILD_RPATH=ON $cmakeFlags" + # And build always Release, to ensure optimisation flags + cmakeFlags="-DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON $cmakeFlags" echo "cmake flags: $cmakeFlags ${cmakeFlagsArray[@]}" |