Skip to content
Snippets Groups Projects
Commit 6969514c authored by Robert Klöfkorn's avatar Robert Klöfkorn
Browse files

removed -static option from LDFLAGS when testing libs because caused

troubles when using mpicxx and there are only shared lib of mpi.



[[Imported from SVN: r4709]]
parent 0ae0bfc8
No related branches found
No related tags found
No related merge requests found
......@@ -59,12 +59,9 @@ AC_CHECK_HEADER([alberta.h],
CPPFLAGS="$REM_CPPFLAGS -I$ALBERTA_INCLUDE_PATH"
REM_CPPFLAGS=
REM_LDFLAGS=$LDFLAGS
# TODO: check if static flag exists
# link_static_flag defines the flag for the linker to link only static
# didnt work, with $link_static_flag, so quick hack here
LDFLAGS="$LDFLAGS -static"
# if header is found...
if test x$HAVE_ALBERTA = x1 ; then
......@@ -73,7 +70,7 @@ if test x$HAVE_ALBERTA = x1 ; then
ALBERTA_LDFLAGS="-L$ALBERTA_LIB_PATH"
LIBS="$LIBS $ALBERTA_LIBS"],
[HAVE_ALBERTA="0"
AC_MSG_WARN(libalberta_util not.a found!)])
AC_MSG_WARN(-lalberta_util not found!)])
fi
# still everything found?
......@@ -87,11 +84,9 @@ if test x$HAVE_ALBERTA = x1 ; then
AC_CHECK_LIB($albertalibname,[mesh_traverse],
[ALBERTA_LIBS="-l$variablealbertalibname $ALBERTA_LIBS $ALBERTA_EXTRA"],
[HAVE_ALBERTA="0"
AC_MSG_WARN(lib$albertalibname.a not found!)])
AC_MSG_WARN(-l$albertalibname not found!)])
fi
LDFLAGS=$REM_LDFLAGS
## end of alberta check (--without wasn't set)
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment