OCaml 4.14.0 rebuild
[arch-packages.git] / nvidia-settings / trunk / libxnvctrl_so.patch
blob664ab98225f4e2df9f0170c43e4253b524b5c235
1 --- src/libXNVCtrl/Makefile 2019-07-30 00:26:56.000000000 +0200
2 +++ src/libXNVCtrl/Makefile 2019-08-02 14:08:56.963744238 +0200
3 @@ -50,8 +50,8 @@
5 .PHONY: clean
7 -all: $(LIBXNVCTRL)
8 +all: $(LIBXNVCTRL) $(LIBXNVCTRL_SHARED)
10 clean:
11 - rm -rf $(LIBXNVCTRL) *~ \
12 + rm -rf $(LIBXNVCTRL) $(LIBXNVCTRL_SHARED)* *~ \
13 $(OUTPUTDIR)/*.o $(OUTPUTDIR)/*.d
14 --- src/libXNVCtrl/xnvctrl.mk 2019-08-02 17:04:08.216230565 +0200
15 +++ src/libXNVCtrl/xnvctrl.mk 2019-08-02 17:08:02.563660632 +0200
16 @@ -39,6 +39,11 @@
18 LIBXNVCTRL = $(OUTPUTDIR)/libXNVCtrl.a
20 +LIBXNVCTRL_SHARED = $(OUTPUTDIR)/libXNVCtrl.so
21 +LIBXNVCTRL_ABI_VERSION_MAJOR = 0
22 +LIBXNVCTRL_ABI_VERSION_MINOR = 0
23 +LIBXNVCTRL_LIBS += -lXext -lX11
25 LIBXNVCTRL_SRC = $(XNVCTRL_DIR)/NVCtrl.c
27 LIBXNVCTRL_OBJ = $(call BUILD_OBJECT_LIST,$(LIBXNVCTRL_SRC))
28 @@ -47,3 +52,8 @@
30 $(LIBXNVCTRL) : $(LIBXNVCTRL_OBJ)
31 $(call quiet_cmd,AR) ru $@ $(LIBXNVCTRL_OBJ)
33 +$(LIBXNVCTRL_SHARED) : $(LIBXNVCTRL_OBJ)
34 + $(CC) -shared $(CFLAGS) $(LDFLAGS) -Wl,-soname=$(notdir $@).${LIBXNVCTRL_ABI_VERSION_MAJOR} -o $@.$(LIBXNVCTRL_ABI_VERSION_MAJOR).$(LIBXNVCTRL_ABI_VERSION_MINOR).0 $^ $(LIBXNVCTRL_LIBS)
35 + ln -s $(notdir $@).$(LIBXNVCTRL_ABI_VERSION_MAJOR).$(LIBXNVCTRL_ABI_VERSION_MINOR).0 $@
36 + ln -s $(notdir $@).$(LIBXNVCTRL_ABI_VERSION_MAJOR).$(LIBXNVCTRL_ABI_VERSION_MINOR).0 $@.$(LIBXNVCTRL_ABI_VERSION_MAJOR)