aboutsummaryrefslogtreecommitdiffstats
path: root/driver/Linker.ml
diff options
context:
space:
mode:
authorXavier Leroy <xavierleroy@users.noreply.github.com>2017-02-15 11:46:17 +0100
committerGitHub <noreply@github.com>2017-02-15 11:46:17 +0100
commit1aee802bf438fff7a83dec4607cabefdc398c3de (patch)
treee8e341b656c5e8ea6f61226878ad5dd1ee0e5082 /driver/Linker.ml
parent53479577c06db853f48cf9927b5039507436be45 (diff)
parent5c0c02e51a76183eb43b5ed80d925f3c2ce88dfb (diff)
downloadcompcert-1aee802bf438fff7a83dec4607cabefdc398c3de.tar.gz
compcert-1aee802bf438fff7a83dec4607cabefdc398c3de.zip
Merge pull request #167 from AbsInt/pipe_prerequisite
Introduced configuration variable for gnu systems.
Diffstat (limited to 'driver/Linker.ml')
-rw-r--r--driver/Linker.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/driver/Linker.ml b/driver/Linker.ml
index 5e14cfd4..54566efb 100644
--- a/driver/Linker.ml
+++ b/driver/Linker.ml
@@ -48,7 +48,7 @@ let linker_help =
-l<lib> Link library <lib>
-L<dir> Add <dir> to search path for libraries
|} ^
- (if gnu_system then gnu_linker_help else "") ^
+ (if Configuration.gnu_toolchain then gnu_linker_help else "") ^
{| -s Remove all symbol table and relocation information from the
executable
-static Prevent linking with the shared libraries
@@ -63,14 +63,14 @@ let linker_help =
let linker_actions =
[ Prefix "-l", Self push_linker_arg;
Prefix "-L", Self push_linker_arg; ] @
- (if gnu_system then
+ (if Configuration.gnu_toolchain then
[ Exact "-nostartfiles", Self push_linker_arg;
Exact "-nodefaultlibs", Self push_linker_arg;
Exact "-nostdlib", Self push_linker_arg;]
else []) @
[ Exact "-s", Self push_linker_arg;
Exact "-static", Self push_linker_arg;
- Exact "-T", String (fun s -> if gnu_system then begin
+ Exact "-T", String (fun s -> if Configuration.gnu_toolchain then begin
push_linker_arg ("-T");
push_linker_arg(s)
end else