summarylogtreecommitdiffstats
path: root/jmake.patch
blob: e94cba4c41ef44564b05fb2a6779ec1ad56318b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff -Naur jove-4.17.5.1.orig/jmake.sh jove-4.17.5.1.new/jmake.sh
--- jove-4.17.5.1.orig/jmake.sh	2023-02-24 15:34:10.400463629 +0100
+++ jove-4.17.5.1.new/jmake.sh	2023-02-24 15:34:32.873599853 +0100
@@ -22,7 +22,7 @@
 # most modern compilers are gcc-compatible (even if called cc)
 optflags=${CFLAGS-"-g -Os -Wall -Werror -pedantic"}
 ldlibs=
-ldflags=	# special link flags, usually none needed
+ldflags="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"	# special link flags, usually none needed
 extra=		# older UN*X (e.g Solaris, SunOS, etc, might need these)
 rel=
 case "$u" in
diff -Naur jove-4.17.5.1.orig/Makefile jove-4.17.5.1.new/Makefile
--- jove-4.17.5.1.orig/Makefile	2023-02-24 15:34:10.393797021 +0100
+++ jove-4.17.5.1.new/Makefile	2023-02-24 15:34:25.646996394 +0100
@@ -42,7 +42,7 @@
 JBINDIR = $(JOVEHOME)/bin
 DBINDIR = $(DESTDIR)$(JBINDIR)
 XEXT=
-JMANDIR = $(JOVEHOME)/man/man$(MANEXT)
+JMANDIR = $(JOVEHOME)/share/man/man$(MANEXT)
 DMANDIR = $(DESTDIR)$(JMANDIR)
 MANEXT = 1
 JTEACHBASE = teach-jove