From acb827c29187de3fafd17561e6e53606de33a94a Mon Sep 17 00:00:00 2001 From: Gabor Pali Date: Thu, 29 Aug 2013 15:58:10 +0100 Subject: [PATCH] Make PIC generation default only on amd64. --- utils/clflags.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/clflags.ml b/utils/clflags.ml index 9dc6282e518a..a42345af17ee 100644 --- a/utils/clflags.ml +++ b/utils/clflags.ml @@ -99,7 +99,8 @@ let std_include_dir () = let shared = ref false (* -shared *) let dlcode = ref true (* not -nodynlink *) -let pic_code = ref true (* -fPIC (amd64 and arm only) *) +let pic_code = ref (String.compare "amd64" Config.architecture == 0) + (* -fPIC (only true by default on amd64) *) let runtime_variant = ref "";; (* -runtime-variant *)