Commit 1956625 1 parent 4e9b1da commit 1956625 Copy full SHA for 1956625
File tree 4 files changed +13
-4
lines changed
4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -28,4 +28,8 @@ build: [
28
28
"@doc" {with-doc}
29
29
]
30
30
]
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 1
1
RUNTIME =runtime.a
2
2
3
3
.DEFAULT := $(RUNTIME )
4
+ CC := i686-linux-gnu-gcc
4
5
5
6
$(RUNTIME ) : gc_runtime.o runtime.o
6
7
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 =
833
833
let objs = find_objects (fst @@ fst prog) cmd#get_include_paths in
834
834
let buf = Buffer. create 255 in
835
835
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
837
837
Sys. command gcc_cmdline
838
838
| `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)
840
840
| _ -> invalid_arg " must not happen"
You can’t perform that action at this time.
0 commit comments