diff options
Diffstat (limited to 'community/spim/respect-env.patch')
-rw-r--r-- | community/spim/respect-env.patch | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/community/spim/respect-env.patch b/community/spim/respect-env.patch index c7c8925c4e..da69699d9b 100644 --- a/community/spim/respect-env.patch +++ b/community/spim/respect-env.patch @@ -1,6 +1,13 @@ ---- spim/Makefile 2010-08-01 22:14:53.352906061 +0200 -+++ spim/Makefile 2010-08-01 22:15:00.994905920 +0200 -@@ -66,13 +66,13 @@ +This patch has been taken from Gentoo [0] it is required because the +spim build system doesn't pickup our environment variables for +configuring the compilation process (e.g. CC, CFLAGS, LDFLAGS, …). + +[0]: https://gitweb.gentoo.org/repo/gentoo.git/tree/app-emulation/spim/files/spim-8.0-r1-respect_env.patch + +diff -upr spim-8.0.orig/spim/Makefile spim-8.0/spim/Makefile +--- spim-8.0.orig/spim/Makefile 2018-10-25 17:33:32.657781846 +0200 ++++ spim-8.0/spim/Makefile 2018-10-25 17:33:38.627820543 +0200 +@@ -66,13 +66,13 @@ DOC_DIR = ../Documentation # Full path for the directory that will hold the executable files: @@ -17,7 +24,7 @@ # If you have flex, use it instead of lex. If you use flex, define this -@@ -104,11 +104,10 @@ +@@ -104,11 +104,10 @@ ENDIAN=`cat configuration` DEFINES = $(ENDIAN) $(MEM_SIZES) -DDEFAULT_EXCEPTION_HANDLER="\"$(EXCEPTION_DIR)/exceptions.s\"" -DSPIM_VERSION="\"`cat ../VERSION`\"" @@ -31,7 +38,7 @@ CSH = bash # lex.yy.c is usually compiled with -O to speed it up. -@@ -122,10 +121,10 @@ +@@ -122,10 +121,10 @@ OBJS = spim-utils.o run.o mem.o inst.o d spim: force @@ -44,7 +51,7 @@ force: configuration -@@ -143,19 +142,19 @@ +@@ -143,19 +142,19 @@ test: spim @echo @echo "Testing tt.bare.s:" $(CSH) -c "./spim -delayed_branches -delayed_loads -noexception -file $(TEST_DIR)/tt.bare.s >& test.out" @@ -67,7 +74,7 @@ @echo @echo -@@ -166,13 +165,13 @@ +@@ -166,13 +165,13 @@ test_bare: spim @echo @echo "Testing tt.alu.bare.s:" $(CSH) -c "./spim -bare -noexception -file $(TEST_DIR)/tt.alu.bare.s >& test.out" @@ -83,7 +90,7 @@ @echo @echo -@@ -192,8 +191,6 @@ +@@ -192,8 +191,6 @@ install: spim install -m 0444 $(CPU_DIR)/exceptions.s $(EXCEPTION_DIR)/exceptions.s install-man: @@ -92,9 +99,10 @@ very-clean: clean rm -f configuration ---- xspim/Makefile 2010-08-01 22:14:53.351905921 +0200 -+++ xspim/Makefile 2010-08-01 22:26:08.361917058 +0200 -@@ -169,18 +169,18 @@ +diff -upr spim-8.0.orig/xspim/Makefile spim-8.0/xspim/Makefile +--- spim-8.0.orig/xspim/Makefile 2018-10-25 17:33:32.657781846 +0200 ++++ spim-8.0/xspim/Makefile 2018-10-25 17:33:38.631153898 +0200 +@@ -169,18 +169,18 @@ TCLIBDIR = /usr/lib VARDBDIR = $(VARDIR)/lib @@ -117,7 +125,7 @@ CXXFILT = c++filt -@@ -199,14 +199,14 @@ +@@ -199,14 +199,14 @@ CXXEXTRA_INCLUDES = COMPRESS = compress GZIPCMD = gzip @@ -136,7 +144,7 @@ LEX = flex -l M4 = m4 -@@ -270,18 +270,18 @@ +@@ -270,18 +270,18 @@ CXXEXTRA_INCLUDES = COL = col COLFLAGS = -b @@ -160,7 +168,7 @@ MODRANLIB = ranlib -@@ -330,7 +330,7 @@ +@@ -330,7 +330,7 @@ MODLDCOMBINEFLAGS = -r ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(INSTALLED_INCLUDES) $(STD_INCLUDES) ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(THREADS_DEFINES) $(MODULE_DEFINES) $(DEFINES) $(EXTRA_DEFINES) @@ -169,7 +177,7 @@ LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES) $(DEPEND_DEFINES) LDPRELIB = $(INSTALLED_LIBS) LDPOSTLIB = -@@ -339,9 +339,9 @@ +@@ -339,9 +339,9 @@ MODLDCOMBINEFLAGS = -r LDLIBS = $(LDPOSTLIBS) $(THREADS_LIBS) $(SYS_LIBRARIES) $(EXTRA_LIBRARIES) |