From 9c0412f41ab194b286d27bf4156252b797cd38c2 Mon Sep 17 00:00:00 2001 From: David Allsopp Date: Wed, 13 May 2020 10:21:46 +0100 Subject: Always permit triplet-prefixed ld in PACKLD Fixes #7121 --- configure | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'configure') diff --git a/configure b/configure index f0bba08bb8..3b4d3cebd6 100755 --- a/configure +++ b/configure @@ -14034,28 +14034,31 @@ else fi if test -z "$PARTIALLD"; then : - # The string for PACKLD must be capable of being concatenated with the - # output filename. Don't assume that all C compilers understand GNU -ofoo - # form, so ensure that the definition includes a space at the end (which is - # achieved using the $(EMPTY) expansion trick). case "$arch,$CC,$system,$model" in #( amd64,gcc*,macosx,*) : - PACKLD='ld -r -arch x86_64 -o $(EMPTY)' ;; #( + PACKLD_FLAGS=' -arch x86_64' ;; #( amd64,gcc*,solaris,*) : - PACKLD='ld -r -m elf_x86_64 -o $(EMPTY)' ;; #( + PACKLD_FLAGS=' -m elf_x86_64' ;; #( power,gcc*,elf,ppc) : - PACKLD='ld -r -m elf32ppclinux -o $(EMPTY)' ;; #( + PACKLD_FLAGS=' -m elf32ppclinux' ;; #( power,gcc*,elf,ppc64) : - PACKLD='ld -r -m elf64ppc -o $(EMPTY)' ;; #( + PACKLD_FLAGS=' -m elf64ppc' ;; #( power,gcc*,elf,ppc64le) : - PACKLD='ld -r -m elf64lppc -o $(EMPTY)' ;; #( - # For the Microsoft C compiler there must be no space at the end of the - # string. - *,cl,*,*) : - PACKLD="link -lib -nologo $machine -out:" ;; #( + PACKLD_FLAGS=' -m elf64lppc' ;; #( *) : - PACKLD="$DIRECT_LD -r -o \$(EMPTY)" ;; + PACKLD_FLAGS='' ;; esac + # The string for PACKLD must be capable of being concatenated with the + # output filename. Don't assume that all C compilers understand GNU -ofoo + # form, so ensure that the definition includes a space at the end (which is + # achieved using the $(EMPTY) expansion trick). + if test x"$CC" = "xcl"; then : + # For the Microsoft C compiler there must be no space at the end of the + # string. + PACKLD="link -lib -nologo $machine -out:" +else + PACKLD="$DIRECT_LD -r$PACKLD_FLAGS -o \$(EMPTY)" +fi else PACKLD="$PARTIALLD -o \$(EMPTY)" fi -- cgit v1.2.1