mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
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 {
|
||||
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++";
|
||||
|
|
Loading…
Reference in a new issue