Skip to content

Commit 168e17f

Browse files
aritgeraaronp24
authored andcommitted
nvidia-settings: Bundle nvml.h
Not many distros distribute an nvml development package that would include nvml.h (or libnvidia-ml.so), so having external build time dependence on nvml is cumbersome. Avoid this by including an nvml.h with the nvidia-settings source tarball.
1 parent 7ced6bb commit 168e17f

File tree

2 files changed

+4485
-14
lines changed

2 files changed

+4485
-14
lines changed

src/Makefile

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -146,21 +146,8 @@ endif
146146

147147
LDFLAGS += $(X_LDFLAGS)
148148

149-
150-
# Link against NVIDIA NVML library if available
151-
152-
# Set to 1 if NVML is available on the target system
153149
NVML_EXPERIMENTAL ?=
154-
155-
# Here "gdk" stands for "GPU Developer Kit", rather than gtk's lower-level
156-
# "GIMP Drawing Kit"
157-
NVML_CFLAGS ?= -I /usr/include/nvidia/gdk
158-
159-
NVML_CFLAGS += $(if $(NVML_EXPERIMENTAL),-DNVML_EXPERIMENTAL)
160-
161-
NVML_LDFLAGS ?=
162-
CFLAGS += $(NVML_CFLAGS)
163-
LDFLAGS += $(NVML_LDFLAGS)
150+
CFLAGS += $(if $(NVML_EXPERIMENTAL),-DNVML_EXPERIMENTAL)
164151

165152

166153
# Some older Linux distributions do not have the dynamic library

0 commit comments

Comments
 (0)