Skip to content

Commit 68e9cf1

Browse files
committed
Disable libudev in hwloc builds
UMF does not link with libudev. Fixes the error on linking with a hwloc static library on systems with libudev installed: ld.lld: error: undefined symbol: udev_device_new_from_subsystem_sysname
1 parent 7ef936c commit 68e9cf1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ else()
176176
./configure --prefix=${hwloc_targ_BINARY_DIR}
177177
--enable-static=yes --enable-shared=no --disable-libxml2
178178
--disable-pci --disable-levelzero --disable-opencl
179-
--disable-cuda --disable-nvml CFLAGS=-fPIC CXXFLAGS=-fPIC
179+
--disable-cuda --disable-nvml --disable-libudev CFLAGS=-fPIC
180+
CXXFLAGS=-fPIC
180181
WORKING_DIRECTORY ${hwloc_targ_SOURCE_DIR}
181182
OUTPUT ${hwloc_targ_SOURCE_DIR}/Makefile
182183
DEPENDS ${hwloc_targ_SOURCE_DIR}/configure)

0 commit comments

Comments
 (0)