1 # FP_CC_LINKER_FLAG_TRY()
3 # Try a particular linker to see whether we can use it. In particular, determine
4 # whether we can convince gcc to use it via a -fuse-ld=... flag.
6 # $1 = the name of the linker to try
7 # $2 = the variable to set with the appropriate GHC flag if the linker is
9 AC_DEFUN([FP_CC_LINKER_FLAG_TRY], [
10 AC_MSG_CHECKING([whether C compiler supports -fuse-ld=$1])
11 echo 'int main(void) {return 0;}' > conftest.c
12 if $CC -o conftest.o -fuse-ld=$1 $LDFLAGS conftest.c > /dev/null 2>&1
19 rm -f conftest.c conftest.o