Skip to content

Commit

Permalink
postgresql: add -export_dynamic on darwin only for v16
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther committed Nov 30, 2024
1 parent 3bd9f92 commit 6547f93
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkgs/servers/sql/postgresql/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,8 @@ let
++ lib.optionals pythonSupport [ "--with-python" ]
++ lib.optionals jitSupport [ "--with-llvm" ]
++ lib.optionals pamSupport [ "--with-pam" ]
# This could be removed once the upstream issue is resolved:
# https://postgr.es/m/flat/427c7c25-e8e1-4fc5-a1fb-01ceff185e5b%40technowledgy.de
++ lib.optionals (stdenv'.hostPlatform.isDarwin && atLeast "16") [ "LDFLAGS_EX_BE=-Wl,-export_dynamic" ]
# This can be removed once v16 is removed. v17+ ships with it.
++ lib.optionals (stdenv'.hostPlatform.isDarwin && atLeast "16" && olderThan "17") [ "LDFLAGS_EX_BE=-Wl,-export_dynamic" ]
++ lib.optionals (atLeast "17" && !perlSupport) [ "--without-perl" ]
++ lib.optionals ldapSupport [ "--with-ldap" ]
++ lib.optionals tclSupport [ "--with-tcl" ]
Expand Down

0 comments on commit 6547f93

Please sign in to comment.