From 22a432b587c08daf87faf957ea5667ea99ae057d Mon Sep 17 00:00:00 2001 From: Mike McGreevy Date: Mon, 26 Mar 2012 14:30:45 -0500 Subject: [svn-r22146] Purpose: HDFFV-398: h5cc doesn't work with automake Description: Fixed compiler wrapper scripts to correctly detect compilation when -MT preprocessor flag is provided, fixing a bug in which its *.o argument was added to link_objs but not compile_args. This previously broke usage of h5cc as the provided compiler in configure scripts (like with h5edit) as automake may supply the -MT option to the compiler via the makefiles. Tested: Tested using h5edit and h5committested. --- c++/src/h5c++.in | 2 +- fortran/src/h5fc.in | 2 +- tools/misc/h5cc.in | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/c++/src/h5c++.in b/c++/src/h5c++.in index 39d3d2a..20435eb 100755 --- a/c++/src/h5c++.in +++ b/c++/src/h5c++.in @@ -208,7 +208,7 @@ for arg in $@ ; do get_output_file="yes" fi ;; - -E|-M) + -E|-M|-MT) allargs="$allargs $arg" compile_args="$compile_args $arg" dash_c="yes" diff --git a/fortran/src/h5fc.in b/fortran/src/h5fc.in index 9e9409d..2d7b5b4 100755 --- a/fortran/src/h5fc.in +++ b/fortran/src/h5fc.in @@ -189,7 +189,7 @@ for arg in $@ ; do get_output_file="yes" fi ;; - -E|-M) + -E|-M|-MT) allargs="$allargs $arg" compile_args="$compile_args $arg" dash_c="yes" diff --git a/tools/misc/h5cc.in b/tools/misc/h5cc.in index a1421a2..233c80a 100755 --- a/tools/misc/h5cc.in +++ b/tools/misc/h5cc.in @@ -220,7 +220,7 @@ for arg in $@ ; do get_output_file="yes" fi ;; - -E|-M) + -E|-M|-MT) allargs="$allargs $arg" compile_args="$compile_args $arg" dash_c="yes" -- cgit v0.12