python312Packages.vdf: avoid using pname for src.repo
[NixPkgs.git] / pkgs / os-specific / linux / nvidia-x11 / libxnvctrl-build-shared-3xx.patch
blobd2e074add7549f7c5e073b96e4996482b9185d93
1 --- a/src/libXNVCtrl/Makefile
2 +++ b/src/libXNVCtrl/Makefile
3 @@ -33,6 +33,8 @@
5 LIBXNVCTRL = libXNVCtrl.a
7 +LIBXNVCTRL_SHARED = $(OUTPUTDIR)/libXNVCtrl.so
9 LIBXNVCTRL_PROGRAM_NAME = "libXNVCtrl"
11 LIBXNVCTRL_VERSION := $(NVIDIA_VERSION)
12 @@ -62,6 +64,12 @@
13 $(LIBXNVCTRL) : $(OBJS)
14 $(AR) ru $@ $(OBJS)
16 +$(LIBXNVCTRL_SHARED): $(LIBXNVCTRL_OBJ)
17 + $(RM) $@ $@.*
18 + $(CC) -shared -Wl,-soname=$(@F).0 -o $@.0.0.0 $(LDFLAGS) $^ -lXext -lX11
19 + ln -s $(@F).0.0.0 $@.0
20 + ln -s $(@F).0 $@
22 # define the rule to build each object file
23 $(foreach src,$(SRC),$(eval $(call DEFINE_OBJECT_RULE,TARGET,$(src))))