aports/testing/cpdf/use-asmrun-pic-variant_patch

13 lines
813 B
Text

--- a/build
+++ b/build
@@ -126,8 +126,8 @@ cd ..
#Using -output-obj for dynamic library (moved here so static build doesn't pick it up!)
echo ***MAKING DYNAMIC LIBRARY WITH -output-obj
-echo $ocamlfind ocamlopt $camlpackages -output-obj -o lib${libname}.$dllname $wrapperos $camllibs $camlpackcmxa $camlcmx
-$ocamlfind ocamlopt $camlpackages -output-obj -o lib${libname}.$dllname $wrapperos $camllibs $camlpackcmxa $camlcmx
+echo $ocamlfind ocamlopt $camlpackages -output-obj -o lib${libname}.$dllname -runtime-variant _pic $wrapperos $camllibs $camlpackcmxa $camlcmx
+$ocamlfind ocamlopt $camlpackages -output-obj -o lib${libname}.$dllname -runtime-variant _pic $wrapperos $camllibs $camlpackcmxa $camlcmx
#Build an example executable, with dynamic .so
echo ***BUILD example executable with dynamic .so