From e3aead635a2eadd03fb7484a15e25080c7ca4a8b Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sat, 26 Dec 2020 13:05:04 +0000 Subject: Initial revision --- vcvrack/build/patches/vcvrack-1.1.6_32bit.patch | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 vcvrack/build/patches/vcvrack-1.1.6_32bit.patch diff --git a/vcvrack/build/patches/vcvrack-1.1.6_32bit.patch b/vcvrack/build/patches/vcvrack-1.1.6_32bit.patch new file mode 100644 index 00000000..ad24f5af --- /dev/null +++ b/vcvrack/build/patches/vcvrack-1.1.6_32bit.patch @@ -0,0 +1,31 @@ +--- Rack-1.1.6/arch.mk.orig 2020-12-25 10:54:23.000000000 +0100 ++++ Rack-1.1.6/arch.mk 2020-12-26 13:38:28.433545407 +0100 +@@ -15,6 +15,13 @@ + else ifneq (, $(findstring linux, $(MACHINE))) + ARCH_LIN := 1 + ARCH := lin ++ ifneq ( ,$(findstring x86_64, $(MACHINE))) ++ ARCH_LIN_64 := 1 ++ BITS := 64 ++ else ifneq (, $(findstring i586, $(MACHINE))) ++ ARCH_LIN_32 := 1 ++ BITS := 32 ++ endif + else + $(error Could not determine architecture of $(MACHINE). Try hacking around in arch.mk) + endif +--- Rack-1.1.6/compile.mk.orig 2020-12-26 12:44:01.640091814 +0100 ++++ Rack-1.1.6/compile.mk 2020-12-26 13:42:28.359755696 +0100 +@@ -83,7 +83,11 @@ + build/%.bin.o: % + @mkdir -p $(@D) + ifdef ARCH_LIN +- $(OBJCOPY) -I binary -O elf64-x86-64 -B i386:x86-64 --rename-section .data=.rodata,alloc,load,readonly,data,contents $< $@ ++ifdef ARCH_LIN_32 ++ $(OBJCOPY) -I binary -O elf32-i386 -B i386 --rename-section .data=.rodata,alloc,load,readonly,data,contents $< $@ ++else ++ $(OBJCOPY) -I binary -O elf64-x86-64 -B i386:x86-64 --rename-section .data=.rodata,alloc,load,readonly,data,contents $< $@ ++endif + endif + ifdef ARCH_WIN + $(OBJCOPY) -I binary -O pe-x86-64 -B i386:x86-64 --rename-section .data=.rodata,alloc,load,readonly,data,contents $< $@ -- cgit v1.2.3-65-gdbad