1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
diff -rupN amethyst.orig/amethyst/amethyst.cpp amethyst/amethyst/amethyst.cpp
--- amethyst.orig/amethyst/amethyst.cpp 2019-09-09 16:33:07.000000000 +0930
+++ amethyst/amethyst/amethyst.cpp 2020-05-03 09:53:25.809511392 +0930
@@ -26,8 +26,8 @@ auto about() -> void {
auto locate(string location) -> string {
if(inode::exists({Path::program(), location})) return {Path::program(), location};
- directory::create({Path::userSettings(), "amethyst/"});
- return {Path::userSettings(), "amethyst/", location};
+ directory::create({Path::sharedData(), "amethyst/"});
+ return {Path::sharedData(), "amethyst/", location};
}
auto getFont(string path) -> Font {
diff -rupN amethyst.orig/amethyst/GNUmakefile amethyst/amethyst/GNUmakefile
--- amethyst.orig/amethyst/GNUmakefile 2018-12-27 05:45:14.000000000 +1030
+++ amethyst/amethyst/GNUmakefile 2020-05-03 09:53:25.809511392 +0930
@@ -1,5 +1,5 @@
name := amethyst
-build := stable
+build := release
flags += -I..
nall.path := ../nall
diff -rupN amethyst.orig/nall/GNUmakefile amethyst/nall/GNUmakefile
--- amethyst.orig/nall/GNUmakefile 2019-07-04 10:47:21.000000000 +0930
+++ amethyst/nall/GNUmakefile 2020-05-03 09:53:25.809511392 +0930
@@ -119,7 +119,7 @@ endif
# linux settings
ifeq ($(platform),linux)
- options += -ldl
+ options += -ldl -Wl,-z,relro,-z,now
endif
# bsd settings
@@ -230,5 +230,5 @@ strne = $(if $(filter-out xx,x$(subst $1
ifeq ($(platform),windows)
prefix := $(subst $([space]),\$([space]),$(strip $(call strtr,$(LOCALAPPDATA),\,/)))
else
- prefix := $(HOME)/.local
+ prefix := /usr
endif
|