Fix dbus-tools build on SmartOS
`ld` on illumos does not understand `--as-needed`
This commit is contained in:
parent
6a2b723a8b
commit
f72bdba420
@ -93,7 +93,7 @@ let
|
|||||||
preBuild = makeInternalLib;
|
preBuild = makeInternalLib;
|
||||||
buildInputs = buildInputsX ++ systemdOrEmpty ++ [ libs ];
|
buildInputs = buildInputsX ++ systemdOrEmpty ++ [ libs ];
|
||||||
NIX_CFLAGS_LINK =
|
NIX_CFLAGS_LINK =
|
||||||
stdenv.lib.optionalString (!stdenv.isDarwin) "-Wl,--as-needed "
|
stdenv.lib.optionalString (!stdenv.isDarwin && !stdenv.isSunOS) "-Wl,--as-needed "
|
||||||
+ "-ldbus-1";
|
+ "-ldbus-1";
|
||||||
|
|
||||||
# don't provide another dbus-1.pc (with incorrect include and link dirs),
|
# don't provide another dbus-1.pc (with incorrect include and link dirs),
|
||||||
|
Loading…
Reference in New Issue
Block a user