diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-09-04 15:58:36 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-09-04 16:41:47 +1000 |
commit | bc0841b6e87cdd752b44b17ccb021c831a3e02a5 (patch) | |
tree | 52d60a32d31e18bd7d1ac76282e95aa78b3704a4 | |
parent | 58d9a4c6356c98c32be2826410df027ece70d44d (diff) |
shave: hack around the configure ld check for make distcheck.
configure calls $(CC) -print-prog-name=ld to get the binary for the linker.
The shave script prints " CC \nld" which can't be parsed by configure,
resulting in a fatal error.
This patch special-cases -print-prog-name and passes it though directly
without any additional output.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | shave.in | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 " ;; |