summaryrefslogtreecommitdiffhomepage
path: root/patches/slang-2.3.2.local.patch
blob: 33ea109040b9cae91a7a05d25090ffb9e2ddb61a (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
diff -ru slang-2.3.2.orig/configure slang-2.3.2/configure
--- slang-2.3.2.orig/configure	2018-03-05 00:16:36.000000000 +0100
+++ slang-2.3.2/configure	2020-09-15 12:16:06.735950835 +0200
@@ -7082,8 +7082,8 @@
   fi
 fi
 
-OBJDIR=$SRCDIR/"\$(ARCH)"objs
-ELFDIR=$SRCDIR/"\$(ARCH)"elfobjs
+OBJDIR=$SRCDIR/objs
+ELFDIR=$SRCDIR/elfobjs
 
 
 missingmodules=""
diff -ru slang-2.3.2.orig/demo/Makefile.in slang-2.3.2/demo/Makefile.in
--- slang-2.3.2.orig/demo/Makefile.in	2018-03-05 00:16:36.000000000 +0100
+++ slang-2.3.2/demo/Makefile.in	2020-09-15 12:13:09.195956393 +0200
@@ -10,7 +10,7 @@
 # Directory where the various libraries are located.
 #-----------------------------------------------------------------------------
 SLANG_INCLUDE = ../src#             location of slang.h
-SLANG_LIB = $(SLANG_INCLUDE)/$(ARCH)objs#     location of libslang.a
+SLANG_LIB = $(SLANG_INCLUDE)/objs#     location of libslang.a
 
 #---------------------------------------------------------------------------
 # Other libraries
diff -ru slang-2.3.2.orig/modules/Makefile.in slang-2.3.2/modules/Makefile.in
--- slang-2.3.2.orig/modules/Makefile.in	2018-03-05 00:16:36.000000000 +0100
+++ slang-2.3.2/modules/Makefile.in	2020-09-15 12:19:04.808713632 +0200
@@ -16,14 +16,14 @@
 # ---------------------------------------------------------------------------
 CC		= @CC@
 CFLAGS		= @CFLAGS@ @SLANG_DLL_CFLAGS@
-LDFLAGS		= @LDFLAGS@
+LDFLAGS		= @LDFLAGS@ -L../../src/elfobjs -lslang
 CC_SHARED_FLAGS = @CC_SHARED_FLAGS@
 CC_SHARED 	= $(CC) $(INCS) $(CC_SHARED_FLAGS) $(CFLAGS)
 CONFIG_DIR	= @CONFIG_DIR@
 SRCDIR		= $(CONFIG_DIR)/modules
 CONFIG_H        = $(SRCDIR)/config.h
 SLINT_H         = $(SRCDIR)/slint.h
-OBJDIR		= $(ARCH)objs
+OBJDIR		= objs
 OBJDIR_TSTAMP	= $(OBJDIR)/tstamp
 # ---------------------------------------------------------------------------
 # Installation location of the slang library
diff -ru slang-2.3.2.orig/slsh/Makefile.in slang-2.3.2/slsh/Makefile.in
--- slang-2.3.2.orig/slsh/Makefile.in	2018-03-05 00:16:36.000000000 +0100
+++ slang-2.3.2/slsh/Makefile.in	2020-09-15 12:19:42.948712438 +0200
@@ -4,7 +4,7 @@
 LDFLAGS		= @LDFLAGS@
 DLINK_FLAGS	= @DYNAMIC_LINK_FLAGS@
 CONFIG_DIR	= @CONFIG_DIR@
-OBJDIR		= $(ARCH)objs
+OBJDIR		= objs
 SOBJDIR		= static_objs
 SRCDIR		= $(CONFIG_DIR)/slsh
 #---------------------------------------------------------------------------
@@ -15,7 +15,6 @@
 datarootdir	= @datarootdir@
 INST_LIB_DIR	= @libdir@
 SLANG_INST_INC	= -I@includedir@
-SLANG_INST_LIB	= -L$(INST_LIB_DIR)
 #---------------------------------------------------------------------------
 SLANG_SRCINC	= -I@SRCDIR@
 SLANG_ELFLIB	= -L@ELFDIR@#  for dynamically linked
diff -ru slang-2.3.2.orig/src/curses/Makefile slang-2.3.2/src/curses/Makefile
--- slang-2.3.2.orig/src/curses/Makefile	2018-03-05 00:16:36.000000000 +0100
+++ slang-2.3.2/src/curses/Makefile	2020-09-15 12:14:23.903954054 +0200
@@ -1,5 +1,5 @@
 COMPILE = $(CC) $(CFLAGS) -g -DSLANG -I..
-LFLAGS = -L../$(ARCH)objs -lslang
+LFLAGS = -L../objs -lslang
 M_LIB = -lm
 
 CURSES_H = ../curses.h
diff -ru slang-2.3.2.orig/src/Makefile.in slang-2.3.2/src/Makefile.in
--- slang-2.3.2.orig/src/Makefile.in	2018-03-05 00:16:36.000000000 +0100
+++ slang-2.3.2/src/Makefile.in	2020-09-15 12:13:33.371955636 +0200
@@ -244,7 +244,7 @@
 # The symlinks target is for my own private use.  It simply creates the object
 # directory as a symbolic link to a local disk instead of an NFS mounted one.
 symlinks:
-	-/bin/rm -f $(ARCH)objs
+	-/bin/rm -f objs
 	mkdir -p $(HOME)/sys/$(ARCH)/objs/slang/src
 	ln -s $(HOME)/sys/$(ARCH)/objs/slang/src $(ARCH)objs
 	@echo "Also try: make elfsymlinks"
diff -ru slang-2.3.2.orig/src/test/Makefile slang-2.3.2/src/test/Makefile
--- slang-2.3.2.orig/src/test/Makefile	2018-03-05 00:16:36.000000000 +0100
+++ slang-2.3.2/src/test/Makefile	2020-09-15 12:14:49.723953246 +0200
@@ -13,7 +13,7 @@
 MEMCHECK = valgrind --tool=memcheck --leak-check=yes --leak-resolution=med --num-callers=20
 RUN_TEST_PGM = ./$(TEST_PGM)
 SLANGINC = ..
-SLANGLIB = ../$(ARCH)objs
+SLANGLIB = ../objs
 OTHER_LIBS = -lm
 OTHER_CFLAGS =
 
diff -ru slang-2.3.2.orig/src/util/Makefile slang-2.3.2/src/util/Makefile
--- slang-2.3.2.orig/src/util/Makefile	2018-03-05 00:16:36.000000000 +0100
+++ slang-2.3.2/src/util/Makefile	2020-09-15 12:15:07.135952701 +0200
@@ -1,7 +1,7 @@
 INCS = -I..
-LIBS = -L../$(ARCH)objs -lslang -lm
+LIBS = -L../objs -lslang -lm
 
-bcdump: bcdump.c ../$(ARCH)objs/libslang.a
+bcdump: bcdump.c ../objs/libslang.a
 	$(CC) $(CFLAGS) $(INCS) bcdump.c -o bcdump $(LIBS)
 clean:
 	/bin/rm -f *.o bcdump