summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorGabriella Gonzalez <gabriella@mercury.com>2023-02-28 15:39:59 -0800
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-03-06 17:06:50 -0500
commit845f404da0754f0fa2495739e5ad94b20d3c465d (patch)
tree826c1cf8c69fadf05e3d22bdb44f8d2f5fa95941 /m4
parent83b0177e97c869f49832e559276492b82667d6b7 (diff)
downloadhaskell-845f404da0754f0fa2495739e5ad94b20d3c465d.tar.gz
Fix configure failure on alpine linux
Diffstat (limited to 'm4')
-rw-r--r--m4/fp_ld_supports_response_files.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/fp_ld_supports_response_files.m4 b/m4/fp_ld_supports_response_files.m4
index 3a726332d7..a1124d94bb 100644
--- a/m4/fp_ld_supports_response_files.m4
+++ b/m4/fp_ld_supports_response_files.m4
@@ -5,7 +5,8 @@ AC_DEFUN([FP_LD_SUPPORTS_RESPONSE_FILES], [
AC_MSG_CHECKING([whether $LD supports response files])
echo 'int main(void) {return 0;}' > conftest.c
"$CC" -c -o conftest.o conftest.c > /dev/null 2>&1
- if "$LD" @<(printf '%q\n' -shared -o conftest conftest.o) > /dev/null 2>&1 || "$LD" @<(printf '%q\n' -dylib -o conftest conftest.o) > /dev/null 2>&1
+ printf '%q\n' -shared -o conftest conftest.o > args.txt
+ if "$LD" -shared @args.txt > /dev/null 2>&1 || "$LD" -dylib @args.txt > /dev/null 2>&1
then
LdSupportsResponseFiles=YES
AC_MSG_RESULT([yes])