Skip to content

Commit 1a4d0eb

Browse files
committed
fPIC for cc: but only openSUSE complained
https://ocaml.ci.dev/github/ahrefs/ocannl/commit/ccaf459c55f1e1dab014a65af54e1ba2ec3b9ad0/variant/opensuse-15.6-5.3_opam-2.3 Signed-off-by: Lukasz Stafiniak <lukstafi@gmail.com>
1 parent dc5ec01 commit 1a4d0eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arrayjit/lib/cc_backend.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ let%track7_sexp c_compile_and_load ~f_name =
6767
(try Stdlib.Sys.remove log_fname with _ -> ());
6868
(try Stdlib.Sys.remove libname with _ -> ());
6969
let cmdline : string =
70-
Printf.sprintf "%s %s -O%d -o %s -shared >> %s 2>&1" (compiler_command ()) f_name
70+
Printf.sprintf "%s %s -O%d -o %s -shared -fPIC >> %s 2>&1" (compiler_command ()) f_name
7171
(optimization_level ()) libname log_fname
7272
in
7373
let rc : int = Stdlib.Sys.command cmdline in

0 commit comments

Comments
 (0)