diff --git a/linux/LibSensors.c b/linux/LibSensors.c index c970f9d17..6df1a5cd8 100644 --- a/linux/LibSensors.c +++ b/linux/LibSensors.c @@ -158,6 +158,12 @@ static int tempDriverPriority(const sensors_chip_name* chip) { } int LibSensors_countCCDs(void) { + +#ifndef BUILD_STATIC + if (!dlopenHandle) + return 0; +#endif /* !BUILD_STATIC */ + int ccds = 0; int n = 0;