Skip to content

configury: add the --enable-static-runtime option #829

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions config/orte_configure_options.m4
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ dnl Copyright (c) 2009 IBM Corporation. All rights reserved.
dnl Copyright (c) 2009-2013 Los Alamos National Security, LLC. All rights
dnl reserved.
dnl Copyright (c) 2009 Oak Ridge National Labs. All rights reserved.
dnl Copyright (c) 2015 Research Organization for Information Science
dnl and Technology (RIST). All rights reserved.
dnl
dnl $COPYRIGHT$
dnl
Expand Down Expand Up @@ -68,4 +70,10 @@ AC_DEFINE_UNQUOTED([ORTE_ENABLE_STATIC_PORTS],
[$orte_enable_static_ports],
[Whether we want static ports enabled])

AC_ARG_ENABLE(static-runtime,
AC_HELP_STRING([--enable-static-runtime],
[Link orted with the static compiler runtime]))
AS_IF([test "x$enable_static_runtime" = "xyes"],
[enable_static=yes])
AM_CONDITIONAL([ORTE_STATIC_RUNTIME], [test "x$enable_static_runtime" = "xyes"])
])dnl
6 changes: 6 additions & 0 deletions orte/tools/orted/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# All rights reserved.
# Copyright (c) 2007-2014 Cisco Systems, Inc. All rights reserved.
# Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
# Copyright (c) 2015 Research Organization for Information Science
# and Technology (RIST). All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
Expand Down Expand Up @@ -43,7 +45,11 @@ orted_SOURCES = orted.c
# nothing to -all-static in the Makefile.in
# nice for systems that don't have all the shared
# libraries on the computes
if ORTE_STATIC_RUNTIME
orted_LDFLAGS = -static
else
orted_LDFLAGS =
endif # ORTE_STATIC_RUNTIME
orted_LDADD = \
$(top_builddir)/orte/lib@[email protected] \
$(top_builddir)/opal/lib@[email protected]
Expand Down