Fix dbus-tools build on SmartOS

`ld` on illumos does not understand `--as-needed`
This commit is contained in:
Danny Wilson 2014-05-17 11:19:32 +02:00 committed by Danny Wilson
parent 6a2b723a8b
commit f72bdba420

View File

@ -93,7 +93,7 @@ let
preBuild = makeInternalLib;
buildInputs = buildInputsX ++ systemdOrEmpty ++ [ libs ];
NIX_CFLAGS_LINK =
stdenv.lib.optionalString (!stdenv.isDarwin) "-Wl,--as-needed "
stdenv.lib.optionalString (!stdenv.isDarwin && !stdenv.isSunOS) "-Wl,--as-needed "
+ "-ldbus-1";
# don't provide another dbus-1.pc (with incorrect include and link dirs),