Skip to content
Snippets Groups Projects
Commit 9e5d5e14 authored by Markus Blatt's avatar Markus Blatt
Browse files

Allow full static linkage by providing -all-static option to DUNE_LDFLAGS during configure.

[[Imported from SVN: r6383]]
parent a47211f3
No related branches found
No related tags found
No related merge requests found
......@@ -395,13 +395,17 @@ AC_DEFUN([DUNE_CHECK_MODULES],[
AS_IF([test "x$HAVE_[]_DUNE_MODULE" = "x1"],[
# save current LDFLAGS
ac_save_CXX="$CXX"
ac_save_CXX="$CXX"
# Use $CXX $DUNE_LDFLAGS as link command, as the latter might
# contain the -static option to force static linkage
ac_cxx_ld=`echo $ac_save_CXX | sed "s/$CXX/$CXX $DUNE_LDFLAGS/"`
HAVE_[]_DUNE_MODULE=0
# define LTCXXLINK like it will be defined in the Makefile
CXX="./libtool --tag=CXX --mode=link $ac_save_CXX"
# use module LDFLAGS
CXX="./libtool --tag=CXX --mode=link $ac_cxx_ld "
# use module LDFLAGS
LDFLAGS="$ac_save_LDFLAGS $DUNE_LDFLAGS $DUNE_PKG_LDFLAGS $_dune_cm_LDFLAGS"
LIBS="$_dune_cm_LIBS $DUNE_LIBS $LIBS"
......
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