Description: Compile C fastpath stubs with -fPIC
 The C foreign stub bitstring_fastpath is linked into a shared stub
 library via ocamlmklib, but was compiled without -fPIC, causing
 "relocation R_X86_64_32S ... recompile with -fPIC" link failures on
 amd64/arm64 when building with dune. Add -fPIC to the foreign_stubs
 flags in src/dune.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: vendor
Forwarded: no
Last-Update: 2026-09-04

--- ocaml-bitstring-5.0.2.orig/src/dune
+++ ocaml-bitstring-5.0.2/src/dune
@@ -4,5 +4,5 @@
  (foreign_stubs
   (language c)
   (names bitstring_fastpath)
-  (flags -I.))
+  (flags -I. -fPIC))
  (libraries str unix stdlib-shims))

