Skip to content

Commit 5c74bbd

Browse files
committed
ompi/tools/wrappers/ompi_wrapper_script.in: fix dynamic library logic
When open-mpi is compiled with script wrapper compilers option: ./configure --enable-script-wrapper-compilers ... The generated wrappers (e.g. mpicc) emit warnings: Use of uninitialized value $have_dynamic in numeric eq (==) at ./mpicc line 206. Commit 1f18b20 "wrappers: Improve static library handling" removed the declaration of the variable "$have_dynamic" but did not removed all its occurrences. This commit fixes this issue by removing this leftover variable. Signed-off-by: Julien Olivain <[email protected]>
1 parent 68e09c9 commit 5c74bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/tools/wrappers/ompi_wrapper_script.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ if ($disable_flags == 1 && !($dry_run == 1 && $real_flag == 0)) {
203203
$want_preproc = $want_compile = $want_link = 0;
204204
}
205205

206-
if ($want_static == 1 || $have_dynamic == 0) {
206+
if ($want_static == 1) {
207207
$libs = $libs_static;
208208
$linker_flags = $linker_flags_static;
209209
}

0 commit comments

Comments
 (0)