Skip to content

Commit cb76d93

Browse files
committed
ompi_wrapper_script: fix $extra_ldflags
use @OMPI_PKG_CONFIG_LDFLAGS@ instead of @OMPI_WRAPPER_EXTRA_LDFLAGS@ so @{libdir} is substitued with ${libdir} Thanks Manesh Nanavalla for the report
1 parent 2826da7 commit cb76d93

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ompi/tools/wrappers/ompi_wrapper_script.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
# Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
99
# Copyright (c) 2013 Sandia National Laboratories. All rights reserved.
1010
# Copyright (c) 2016 IBM Corporation. All rights reserved.
11+
# Copyright (c) 2016 Research Organization for Information Science
12+
# and Technology (RIST). All rights reserved.
1113
# $COPYRIGHT$
1214
#
1315
# Additional copyrights may follow
@@ -41,7 +43,7 @@ my $extra_cxxflags = "@OMPI_WRAPPER_EXTRA_CXXFLAGS@";
4143
my $extra_cxxflags_prefix = "@OMPI_WRAPPER_EXTRA_CXXFLAGS_PREFIX@";
4244
my $extra_fcflags = "@OMPI_WRAPPER_EXTRA_FCFLAGS@";
4345
my $extra_fcflags_prefix = "@OMPI_WRAPPER_EXTRA_FCFLAGS_PREFIX@";
44-
my $extra_ldflags = "@OMPI_WRAPPER_EXTRA_LDFLAGS@";
46+
my $extra_ldflags = "@OMPI_PKG_CONFIG_LDFLAGS@";
4547
my $extra_libs = "@OMPI_WRAPPER_EXTRA_LIBS@";
4648
my $cxx_lib = "@OMPI_WRAPPER_CXX_LIB@";
4749
my $fc_module_flag = "@OMPI_FC_MODULE_FLAG@";

0 commit comments

Comments
 (0)