Add Makevars for cluster
authorBenjamin Auder <benjamin@auder>
Mon, 16 Dec 2019 18:24:55 +0000 (19:24 +0100)
committerBenjamin Auder <benjamin@auder>
Mon, 16 Dec 2019 18:24:55 +0000 (19:24 +0100)
pkg/src/Makevars_cluster [new file with mode: 0644]

diff --git a/pkg/src/Makevars_cluster b/pkg/src/Makevars_cluster
new file mode 100644 (file)
index 0000000..76af5c4
--- /dev/null
@@ -0,0 +1,4 @@
+# Override R weird defaults:
+# https://stackoverflow.com/questions/23414448/r-makevars-file-to-overwrite-r-cmds-default-g-options
+%.o: %.c
+       gcc -I"/usr/local/R/3.6.1/lib64/R/include" -DNDEBUG -I/usr/local/include -fpic -O2 -c $< -o $@