GLEW is only used by tests: ROCm-OpenCL-Runtime-rocm-5.4.3 $ grep -ril glew tests/ocltst/module/runtime/CMakeLists.txt tests/ocltst/module/perf/CMakeLists.txt tests/ocltst/module/gl/CMakeLists.txt tests/ocltst/module/common/OCLGLCommonWindows.cpp tests/ocltst/module/common/OCLGLCommonLinux.cpp tests/ocltst/module/common/OCLGLCommon.h tests/ocltst/module/common/CMakeLists.txt tests/ocltst/CMakeLists.txt ebuild has: BDEPEND=">=dev-util/rocm-cmake-5.3 media-libs/glew test? ( >=x11-apps/mesa-progs-8.5.0[X] ) "