New flag for compiling libyaml-cpp as PIC.
This commit is contained in:
parent
1a64d9251c
commit
02b7901023
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, cmake, boost }:
|
{ stdenv, fetchurl, cmake, boost, makePIC ? false }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "libyaml-cpp-0.5.1";
|
name = "libyaml-cpp-0.5.1";
|
||||||
@ -10,6 +10,8 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
buildInputs = [ cmake boost ];
|
buildInputs = [ cmake boost ];
|
||||||
|
|
||||||
|
cmakeFlags = stdenv.lib.optionals makePIC [ "-DCMAKE_C_FLAGS=-fPIC" "-DCMAKE_CXX_FLAGS=-fPIC" ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://code.google.com/p/yaml-cpp/;
|
homepage = http://code.google.com/p/yaml-cpp/;
|
||||||
description = "A YAML parser and emitter for C++";
|
description = "A YAML parser and emitter for C++";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user