Skip to content

Commit

Permalink
Merge #306215: glib: fix first build on darwin
Browse files Browse the repository at this point in the history
...into staging-next
  • Loading branch information
vcunat committed Apr 23, 2024
2 parents 5fdc6c6 + a668873 commit d42abe5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkgs/development/libraries/glib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,12 @@ stdenv.mkDerivation (finalAttrs: {
"-Ddocumentation=true" # gvariant specification can be built without gi-docgen
"-Dnls=enabled"
"-Ddevbindir=${placeholder "dev"}/bin"
] ++ lib.optionals (!lib.meta.availableOn stdenv.hostPlatform elfutils) [
"-Dlibelf=disabled"
] ++ lib.optionals (!stdenv.isDarwin) [
"-Dman=true" # broken on Darwin
(lib.mesonEnable "introspection" withIntrospection)
# FIXME: Fails when linking target glib/tests/libconstructor-helper.so
# relocation R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a shared object
"-Dtests=${lib.boolToString (!stdenv.hostPlatform.isStatic)}"
] ++ lib.optionals (!lib.meta.availableOn stdenv.hostPlatform elfutils) [
"-Dlibelf=disabled"
] ++ lib.optionals stdenv.isFreeBSD [
"-Db_lundef=false"
"-Dxattr=false"
Expand Down

0 comments on commit d42abe5

Please sign in to comment.