Produce position-independent code by default. This makes it easier to embed Caml code in a shared library.

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7784 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Xavier Leroy 2007-01-01 13:07:35 +00:00
parent 033ce4b17a
commit 8a2cea5444
1 changed files with 4 additions and 2 deletions

View File

@ -14,11 +14,13 @@
(* Machine-specific command-line options *)
let pic_code = ref false
let pic_code = ref true
let command_line_options =
[ "-fPIC", Arg.Set pic_code,
" Generate position-independent machine code" ]
" Generate position-independent machine code (default)";
"-fno-PIC", Arg.Clear pic_code,
" Generate position-dependent machine code" ]
(* Specific operations for the AMD64 processor *)