New flag for compiling libyaml-cpp as PIC.

This commit is contained in:
Thomas Strobel 2015-02-10 10:40:36 +01:00
parent 1a64d9251c
commit 02b7901023

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, cmake, boost }:
{ stdenv, fetchurl, cmake, boost, makePIC ? false }:
stdenv.mkDerivation {
name = "libyaml-cpp-0.5.1";
@ -10,6 +10,8 @@ stdenv.mkDerivation {
buildInputs = [ cmake boost ];
cmakeFlags = stdenv.lib.optionals makePIC [ "-DCMAKE_C_FLAGS=-fPIC" "-DCMAKE_CXX_FLAGS=-fPIC" ];
meta = with stdenv.lib; {
homepage = http://code.google.com/p/yaml-cpp/;
description = "A YAML parser and emitter for C++";