Unverified Commit 468fd1dd authored by Daniel McCarney's avatar Daniel McCarney
Browse files

ldmud: fix MacOS iconv link time errors

The LDMud autotools build needs some help finding the right libiconv on
MacOS systems. Without nudging it the right direction with LDFLAGS the
system libiconv is used and produces missing symbol errors at link-time.
parent a9b38466
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -87,9 +87,13 @@ stdenv.mkDerivation (finalAttrs: {
    (lib.enableFeature pythonSupport "use-python")
  ];

  preConfigure = lib.optionalString mysqlSupport ''
  preConfigure =
    lib.optionalString mysqlSupport ''
      export CPPFLAGS="-I${lib.getDev libmysqlclient}/include/mysql"
      export LDFLAGS="-L${libmysqlclient}/lib/mysql"
    ''
    + lib.optionalString stdenv.hostPlatform.isDarwin ''
      export LDFLAGS="$LDFLAGS -L${libiconv}/lib -liconv"
    '';

  installTargets = [