summarylogtreecommitdiffstats
path: root/140-nvidia-open-gcc-sls.patch
diff options
context:
space:
mode:
authorJennifer Zhou2024-04-20 22:28:37 +0000
committerJennifer Zhou2024-04-20 23:23:17 +0000
commit7d47d6672dba245e62dde40200530e5d847472ae (patch)
treee83d4bc2cdfd6ee1a1f9eb96f0b0e9de7f2b48ee /140-nvidia-open-gcc-sls.patch
downloadaur-7d47d6672dba245e62dde40200530e5d847472ae.tar.gz
initial
Diffstat (limited to '140-nvidia-open-gcc-sls.patch')
-rw-r--r--140-nvidia-open-gcc-sls.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/140-nvidia-open-gcc-sls.patch b/140-nvidia-open-gcc-sls.patch
new file mode 100644
index 000000000000..6c90e872eab7
--- /dev/null
+++ b/140-nvidia-open-gcc-sls.patch
@@ -0,0 +1,10 @@
+--- a/src/nvidia-modeset/Makefile
++++ b/src/nvidia-modeset/Makefile
+@@ -150,6 +150,7 @@ ifeq ($(TARGET_ARCH),x86_64)
+ CONDITIONAL_CFLAGS += $(call TEST_CC_ARG, -fno-jump-tables)
+ CONDITIONAL_CFLAGS += $(call TEST_CC_ARG, -mindirect-branch=thunk-extern)
+ CONDITIONAL_CFLAGS += $(call TEST_CC_ARG, -mindirect-branch-register)
++ CONDITIONAL_CFLAGS += $(call TEST_CC_ARG, -mharden-sls=all)
+ endif
+
+ CFLAGS += $(CONDITIONAL_CFLAGS)