forked from libMesh/libmesh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding new configure flag --enable-all-static.
This passes -all-static to the --mode=link invocations of libtool and is required on the BG/Q system Mira to force static linking. Updating all Makefiles to set AM_LDFLAGS = $(libmesh_LDFLAGS).
- Loading branch information
1 parent
2ffb39d
commit cd4ae6d
Showing
8 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Configure option to pass -all-static to libtool's link mode. So | ||
# far, this was only required on the BG/Q machine Mira to get static | ||
# linking to work. Off by default. Other than LDFLAGS, AM_LDFLAGS | ||
# seems to be the only flag that makes it into the Makefile.in files | ||
# after the --mode=link arguments to libtool. | ||
AC_DEFUN([AX_ALL_STATIC], | ||
[ | ||
AC_ARG_ENABLE(all-static, | ||
[AC_HELP_STRING([--enable-all-static],[Pass -all-static to libtool's link mode])], | ||
enableallstatic=$enableval, | ||
enableallstatic=no) | ||
if (test $enableallstatic = yes); then | ||
if (test "x$libmesh_LDFLAGS" != x) ; then | ||
# Append to whatever the user has for libmesh_LDFLAGS in their environment | ||
libmesh_LDFLAGS="$libmesh_LDFLAGS -all-static" | ||
else | ||
# Set libmesh_LDFLAGS to -all-static | ||
libmesh_LDFLAGS=-all-static | ||
fi | ||
# Substitute into Makefiles where relevant. | ||
AC_SUBST(libmesh_LDFLAGS) | ||
fi | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters