python3Packages.libredwg: fix build on darwin

This commit is contained in:
Robert Scott 2022-12-05 00:46:24 +00:00
parent a4966eecb9
commit c0e332492f

View File

@ -36,6 +36,11 @@ stdenv.mkDerivation rec {
cp ${printVersion} build-aux/git-version-gen
'';
preConfigure = lib.optionalString (stdenv.isDarwin && enablePython) ''
# prevent configure picking up stack_size from distutils.sysconfig
export PYTHON_EXTRA_LDFLAGS=" "
'';
nativeBuildInputs = [ autoreconfHook pkg-config texinfo ]
++ lib.optional enablePython swig;