diff options
author | Eric Hameleers <alien@slackware.com> | 2020-12-26 13:05:04 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2020-12-26 13:05:04 +0000 |
commit | e3aead635a2eadd03fb7484a15e25080c7ca4a8b (patch) | |
tree | 055391181f2b0ba529e407acba1478dfacdcce69 | |
parent | efd57949f02d51ac463a3b45c9e85fd03e0ae1f0 (diff) | |
download | asb-e3aead635a2eadd03fb7484a15e25080c7ca4a8b.tar.gz asb-e3aead635a2eadd03fb7484a15e25080c7ca4a8b.tar.xz |
Initial revision
-rw-r--r-- | vcvrack/build/patches/vcvrack-1.1.6_32bit.patch | 31 |
1 files changed, 31 insertions, 0 deletions
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 $< $@ |