Unverified Commit b9c6199c authored by Alyssa Ross's avatar Alyssa Ross
Browse files

ocl-icd: fix cross to musl

As with several other packages, we have to tell autoconf to please
assume malloc works properly.
parent f02fddb8
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -26,8 +26,13 @@ stdenv.mkDerivation rec {

  buildInputs = [ opencl-headers ] ++ lib.optionals stdenv.hostPlatform.isWindows [ windows.dlfcn ];

  configureFlags = [
  configureFlags =
    [
      "--enable-custom-vendordir=/run/opengl-driver/etc/OpenCL/vendors"
    ]
    ++ lib.optionals (!lib.systems.equals stdenv.buildPlatform stdenv.hostPlatform) [
      "ac_cv_func_malloc_0_nonnull=yes"
      "ac_cv_func_realloc_0_nonnull=yes"
    ];

  # fixes: can't build x86_64-w64-mingw32 shared library unless -no-undefined is specified