X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=myocamlbuild.ml;fp=myocamlbuild.ml;h=6121130738bf54e44cf88ac9dac1c702ad93e6b7;hb=45da1b4379b39416c6fce4f7a8ef718784fc1acb;hp=6f27e4ee33c7a4ceef58766e67edd14cf4dcbce8;hpb=f8a3963190bb6a22b079a70ac53dadb3119d2899;p=SXSI%2Fxpathcomp.git diff --git a/myocamlbuild.ml b/myocamlbuild.ml index 6f27e4e..6121130 100644 --- a/myocamlbuild.ml +++ b/myocamlbuild.ml @@ -20,7 +20,7 @@ let link_flags = [ A"-linkpkg" ] let libs_files = List.map (fun s -> "file:" ^ s) cxx_libs_objects -let native_compile_flags = ref [A"-fno-PIC"] +let native_compile_flags = if Sys.word_size = 64 then ref [A"-fno-PIC"] else ref [] let compile_flags = ref [] let dwsize = sprintf "-DWORDSIZE%i" Sys.word_size