1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-03-06 23:31:34 +00:00

boost: Fix compilation for static builds.

The 'runtime-link=' feature must not be set in addition to 'link='
for boost-1.55 when building only the statically linked libraries.
Fixes errors that targets were defined multiple times.
This commit is contained in:
Michael Raitza 2016-03-08 10:04:04 +00:00
parent 0bf8a1a86d
commit f7bf249b2b

View file

@ -58,7 +58,7 @@ let
"--layout=${layout}" "--layout=${layout}"
"variant=${variant}" "variant=${variant}"
"threading=${threading}" "threading=${threading}"
"runtime-link=${runtime-link}" ] ++ optional (link != "static") "runtime-link=${runtime-link}" ++ [
"link=${link}" "link=${link}"
"${cflags}" "${cflags}"
] ++ optional (variant == "release") "debug-symbols=off"; ] ++ optional (variant == "release") "debug-symbols=off";