Unverified Commit e3ddef13 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

ocl-icd: fix cross to musl (#403606)

parents b50ab19c b9c6199c
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