diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2015-01-02 13:26:05 +0100 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2015-01-02 13:26:05 +0100 |
commit | 334be23a90a700f3b62806e1178603a28c6ba3bb (patch) | |
tree | c5c9259f7a4c49f7ca8c3db0da4520250d7566c5 | |
parent | ce8f29b4b2502ce8c4da08dfea8796c49e2bc386 (diff) | |
download | compcert-334be23a90a700f3b62806e1178603a28c6ba3bb.tar.gz compcert-334be23a90a700f3b62806e1178603a28c6ba3bb.zip |
PR#14: recognize ".so" arguments as files to pass to the linker.
-rw-r--r-- | driver/Driver.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/driver/Driver.ml b/driver/Driver.ml index fec87420..fb0124ac 100644 --- a/driver/Driver.ml +++ b/driver/Driver.ml @@ -476,8 +476,9 @@ let cmdline_actions = push_action process_S_file s; incr num_source_files); Suffix ".o", Self push_linker_arg; Suffix ".a", Self push_linker_arg; - (* GCC compatibility: .o.ext files are also object files *) + (* GCC compatibility: .o.ext files and .so files are also object files *) _Regexp ".*\\.o\\.", Self push_linker_arg; + Suffix ".so", Self push_linker_arg; (* GCC compatibility: .h files can be preprocessed with -E *) Suffix ".h", Self (fun s -> push_action process_h_file s; incr num_source_files); |