ocl-icd: fix cross to musl (#403606)
This commit is contained in:
@@ -26,9 +26,14 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ opencl-headers ] ++ lib.optionals stdenv.hostPlatform.isWindows [ windows.dlfcn ];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-custom-vendordir=/run/opengl-driver/etc/OpenCL/vendors"
|
||||
];
|
||||
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
|
||||
makeFlags = lib.optionals stdenv.hostPlatform.isWindows [ "LDFLAGS=-no-undefined" ];
|
||||
|
||||
Reference in New Issue
Block a user