summaryrefslogtreecommitdiff
path: root/shave.in
diff options
context:
space:
mode:
Diffstat (limited to 'shave.in')
-rw-r--r--shave.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/shave.in b/shave.in
index 174641e9b..809d606af 100644
--- a/shave.in
+++ b/shave.in
@@ -33,6 +33,13 @@ while test "$#" -gt 0; do
lt_output="$1"
preserved_args="$preserved_args $opt"
;;
+ # hack for configure. configure calls $CC -print-prog-name=ld to get
+ # the linker. Without this bit here, the output can't be parsed and
+ # configure thinks there's no valid linker installed.
+ -print-prog-name=*)
+ mode="find-ld"
+ preserved_args="$preserved_args $opt"
+ ;;
*)
preserved_args="$preserved_args $opt"
;;
@@ -44,6 +51,9 @@ case "$mode,$tool" in
link,*)
pass_through=1
;;
+find-ld,*)
+ pass_through=1
+ ;;
*,cxx)
Q=" CXX "
;;