|
|
@ -1,67 +1,39 @@
|
|
|
|
--- a/src/Makefile
|
|
|
|
diff -up nvidia-settings-435.17/src/libXNVCtrl/Makefile.shared nvidia-settings-435.17/src/libXNVCtrl/Makefile
|
|
|
|
+++ b/src/Makefile
|
|
|
|
--- nvidia-settings-435.17/src/libXNVCtrl/Makefile.shared 2019-08-07 06:12:32.000000000 +0200
|
|
|
|
@@ -106,6 +106,9 @@
|
|
|
|
+++ nvidia-settings-435.17/src/libXNVCtrl/Makefile 2019-08-26 16:23:41.921778088 +0200
|
|
|
|
|
|
|
|
@@ -50,8 +50,9 @@ LDFLAGS += $(XNVCTRL_LDFLAGS)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-all: $(LIBXNVCTRL)
|
|
|
|
|
|
|
|
+all: $(LIBXNVCTRL) libXNVCtrl.so
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
|
|
|
rm -rf $(LIBXNVCTRL) *~ \
|
|
|
|
|
|
|
|
$(OUTPUTDIR)/*.o $(OUTPUTDIR)/*.d
|
|
|
|
|
|
|
|
+ rm -f libXNVCtrl.so libXNVCtrl.so.*
|
|
|
|
|
|
|
|
diff -up nvidia-settings-435.17/src/Makefile.shared nvidia-settings-435.17/src/Makefile
|
|
|
|
|
|
|
|
--- nvidia-settings-435.17/src/Makefile.shared 2019-08-07 06:12:31.000000000 +0200
|
|
|
|
|
|
|
|
+++ nvidia-settings-435.17/src/Makefile 2019-08-26 16:17:31.133406921 +0200
|
|
|
|
|
|
|
|
@@ -106,6 +106,9 @@ endif
|
|
|
|
XNVCTRL_DIR ?= libXNVCtrl
|
|
|
|
XNVCTRL_DIR ?= libXNVCtrl
|
|
|
|
XNVCTRL_MAKEFILE ?= Makefile
|
|
|
|
XCONFIG_PARSER_DIR ?= XF86Config-parser
|
|
|
|
XNVCTRL_ARCHIVE ?= $(XNVCTRL_DIR)/libXNVCtrl.a
|
|
|
|
COMMON_UTILS_DIR ?= common-utils
|
|
|
|
+XNVCTRL_SHARED ?= $(XNVCTRL_DIR)/libXNVCtrl.so.0
|
|
|
|
+XNVCTRL_SHARED ?= $(XNVCTRL_DIR)/libXNVCtrl.so.0
|
|
|
|
+#XNVCTRL_LIB ?= $(XNVCTRL_ARCHIVE)
|
|
|
|
+#XNVCTRL_LIB ?= $(XNVCTRL_ARCHIVE)
|
|
|
|
+XNVCTRL_LIB ?= $(XNVCTRL_SHARED)
|
|
|
|
+XNVCTRL_LIB ?= $(XNVCTRL_SHARED)
|
|
|
|
XCONFIG_PARSER_DIR ?= XF86Config-parser
|
|
|
|
|
|
|
|
COMMON_UTILS_DIR ?= common-utils
|
|
|
|
|
|
|
|
COMMON_UNIX_DIR ?= common-unix
|
|
|
|
COMMON_UNIX_DIR ?= common-unix
|
|
|
|
@@ -280,14 +283,17 @@
|
|
|
|
VIRTUAL_RESOLUTIONS_DIR ?= $(COMMON_UNIX_DIR)/virtual-resolutions
|
|
|
|
$(MKDIR) $(BINDIR)
|
|
|
|
|
|
|
|
$(INSTALL) $(INSTALL_BIN_ARGS) $< $(BINDIR)/$(notdir $<)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-$(NVIDIA_SETTINGS): $(OBJS) $(XNVCTRL_ARCHIVE)
|
|
|
|
diff -up nvidia-settings-435.17/src/libXNVCtrl/xnvctrl.mk.shared nvidia-settings-435.17/src/libXNVCtrl/xnvctrl.mk
|
|
|
|
+$(XNVCTRL_ARCHIVE) $(XNVCTRL_SHARED):
|
|
|
|
--- nvidia-settings-435.17/src/libXNVCtrl/xnvctrl.mk.shared 2019-08-07 06:12:32.000000000 +0200
|
|
|
|
+ $(MAKE) -C $(XNVCTRL_DIR)
|
|
|
|
+++ nvidia-settings-435.17/src/libXNVCtrl/xnvctrl.mk 2019-08-26 16:54:44.518016474 +0200
|
|
|
|
+
|
|
|
|
@@ -47,3 +47,8 @@ $(eval $(call DEFINE_OBJECT_RULE,TARGET,
|
|
|
|
+$(NVIDIA_SETTINGS): $(OBJS) $(XNVCTRL_LIB)
|
|
|
|
|
|
|
|
$(call quiet_cmd,LINK) $(CFLAGS) $(LDFLAGS) $(BIN_LDFLAGS) \
|
|
|
|
|
|
|
|
- -rdynamic -o $@ $(OBJS) $(XNVCTRL_ARCHIVE) $(LIBS)
|
|
|
|
|
|
|
|
+ -rdynamic -o $@ $(OBJS) $(XNVCTRL_LIB) $(LIBS)
|
|
|
|
|
|
|
|
$(call quiet_cmd,STRIP_CMD) $@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(GTK2LIB): $(GTK2_OBJS) $(XCP_OBJS) $(VERSION_MK)
|
|
|
|
|
|
|
|
$(call quiet_cmd,LINK) -shared $(CFLAGS) $(LDFLAGS) $(BIN_LDFLAGS) \
|
|
|
|
|
|
|
|
- $(XNVCTRL_ARCHIVE) $(LIBS) $(GTK2_LIBS) \
|
|
|
|
|
|
|
|
+ $(XNVCTRL_LIB) $(LIBS) $(GTK2_LIBS) \
|
|
|
|
|
|
|
|
-Wl,--unresolved-symbols=ignore-all -o $(GTK2LIB) \
|
|
|
|
|
|
|
|
-Wl,-soname -Wl,$(GTK2LIB_SONAME) \
|
|
|
|
|
|
|
|
$(GTK2_OBJS) $(XCP_OBJS)
|
|
|
|
|
|
|
|
@@ -296,7 +302,7 @@
|
|
|
|
|
|
|
|
ifdef BUILD_GTK3LIB
|
|
|
|
|
|
|
|
$(GTK3LIB): $(GTK3_OBJS) $(XCP_OBJS) $(VERSION_MK)
|
|
|
|
|
|
|
|
$(call quiet_cmd,LINK) -shared $(CFLAGS) $(LDFLAGS) $(BIN_LDFLAGS) \
|
|
|
|
|
|
|
|
- $(XNVCTRL_ARCHIVE) $(LIBS) $(GTK3_LIBS) \
|
|
|
|
|
|
|
|
+ $(XNVCTRL_LIB) $(LIBS) $(GTK3_LIBS) \
|
|
|
|
|
|
|
|
-Wl,--unresolved-symbols=ignore-all -o $(GTK3LIB) \
|
|
|
|
|
|
|
|
-Wl,-soname -Wl,$(GTK3LIB_SONAME) \
|
|
|
|
|
|
|
|
$(GTK3_OBJS) $(XCP_OBJS)
|
|
|
|
|
|
|
|
--- a/src/libXNVCtrl/Makefile
|
|
|
|
|
|
|
|
+++ b/src/libXNVCtrl/Makefile
|
|
|
|
|
|
|
|
@@ -55,10 +55,17 @@
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
all: $(LIBXNVCTRL)
|
|
|
|
$(LIBXNVCTRL) : $(LIBXNVCTRL_OBJ)
|
|
|
|
+all: libXNVCtrl.so
|
|
|
|
$(call quiet_cmd,AR) ru $@ $(LIBXNVCTRL_OBJ)
|
|
|
|
|
|
|
|
+
|
|
|
|
$(LIBXNVCTRL) : $(OBJS)
|
|
|
|
+libXNVCtrl.so: $(LIBXNVCTRL_OBJ)
|
|
|
|
$(AR) ru $@ $(OBJS)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+libXNVCtrl.so: $(OBJS)
|
|
|
|
|
|
|
|
+ $(RM) $@ $@.*
|
|
|
|
|
|
|
|
+ $(CC) -shared -Wl,-soname=$@.0 -o $@.0.0.0 $(LDFLAGS) $^ -lXext -lX11
|
|
|
|
+ $(CC) -shared -Wl,-soname=$@.0 -o $@.0.0.0 $(LDFLAGS) $^ -lXext -lX11
|
|
|
|
+ ln -s $@.0.0.0 $@.0
|
|
|
|
+ ln -s $@.0.0.0 $@.0
|
|
|
|
+ ln -s $@.0 $@
|
|
|
|
+ ln -s $@.0 $@
|
|
|
|
+
|
|
|
|
|
|
|
|
# define the rule to build each object file
|
|
|
|
|
|
|
|
$(foreach src,$(SRC),$(eval $(call DEFINE_OBJECT_RULE,TARGET,$(src))))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -68,3 +75,4 @@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
|
|
|
rm -rf $(LIBXNVCTRL) *~ $(STAMP_C) \
|
|
|
|
|
|
|
|
$(OUTPUTDIR)/*.o $(OUTPUTDIR)/*.d
|
|
|
|
|
|
|
|
+ rm -f libXNVCtrl.so libXNVCtrl.so.*
|
|
|
|
|
|
|
|