From 29c75a4690871546106455b0f913700bbdfba96f Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Mon, 12 Dec 2005 06:41:48 +0000 Subject: [PATCH] libtool 2.0 get confused if the source file is followed by -c (or any other value that is not internally translated). In order to make all the version of libtool happy, the simplest way is to have the source file at the end of the command line. This commit was SVN r8451. --- config/ompi_get_libtool_linker_flags.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/ompi_get_libtool_linker_flags.m4 b/config/ompi_get_libtool_linker_flags.m4 index 59feba5414..3b1599797e 100644 --- a/config/ompi_get_libtool_linker_flags.m4 +++ b/config/ompi_get_libtool_linker_flags.m4 @@ -64,7 +64,7 @@ ompi_check_linker_flags_work() { # First make a sample library with the current LDFLAGS and LIBS # -cmd="$libtool --mode=compile --tag=CC $CC $CFLAGS foo.c -c -o foo.o" +cmd="$libtool --mode=compile --tag=CC $CC $CFLAGS -c -o foo.o foo.c" ompi_check_linker_flags_work cmd="$libtool --mode=link --tag=CC $CC $CFLAGS foo.lo $LDFLAGS $LIBS -o libfoo.la" ompi_check_linker_flags_work