File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,4 +28,8 @@ build: [
2828 "@doc" {with-doc}
2929 ]
3030]
31- depexts: [ [ "gcc-14-multilib" ] {os-distribution = "ubuntu"} ]
31+ depexts: [
32+ [ "gcc-i686-linux-gnu" "linux-libc-dev:i386" "libc6-dev-i386-cross"] {os-distribution = "ubuntu"}
33+ [ "libgcc-13-dev-i386-cross" ] {os-distribution = "ubuntu" & os-version >= "24.04" }
34+ [ "libgcc-14-dev-i386-cross" ] {os-distribution = "ubuntu" & os-version >= "24.04" }
35+ ]
Original file line number Diff line number Diff line change 1- depexts: [ [ "gcc-14-multilib" ] {os-distribution = "ubuntu"} ]
1+ depexts: [
2+ [ "gcc-i686-linux-gnu" "linux-libc-dev:i386" "libc6-dev-i386-cross"] {os-distribution = "ubuntu"}
3+ [ "libgcc-13-dev-i386-cross" ] {os-distribution = "ubuntu" & os-version >= "24.04" }
4+ [ "libgcc-14-dev-i386-cross" ] {os-distribution = "ubuntu" & os-version >= "24.04" }
5+ ]
Original file line number Diff line number Diff line change 11RUNTIME =runtime.a
22
33.DEFAULT := $(RUNTIME )
4+ CC := i686-linux-gnu-gcc
45
56$(RUNTIME ) : gc_runtime.o runtime.o
67 ar rc $@ gc_runtime.o runtime.o
Original file line number Diff line number Diff line change @@ -833,8 +833,8 @@ let build cmd prog =
833833 let objs = find_objects (fst @@ fst prog) cmd#get_include_paths in
834834 let buf = Buffer. create 255 in
835835 List. iter (fun o -> Buffer. add_string buf o; Buffer. add_string buf " " ) objs;
836- let gcc_cmdline = Printf. sprintf " gcc %s -m32 %s %s.s %s %s/runtime.a" cmd#get_debug cmd#get_output_option cmd#basename (Buffer. contents buf) inc in
836+ let gcc_cmdline = Printf. sprintf " i686-linux-gnu- gcc %s %s %s.s %s %s/runtime.a" cmd#get_debug cmd#get_output_option cmd#basename (Buffer. contents buf) inc in
837837 Sys. command gcc_cmdline
838838 | `Compile ->
839- Sys. command (Printf. sprintf " gcc %s -m32 -c %s.s" cmd#get_debug cmd#basename)
839+ Sys. command (Printf. sprintf " i686-linux-gnu- gcc %s -c %s.s" cmd#get_debug cmd#basename)
840840 | _ -> invalid_arg " must not happen"
You can’t perform that action at this time.
0 commit comments