Skip to content

Commit

Permalink
Merge pull request #1218 from jvgeiger/fix/compiling_cray_2205
Browse files Browse the repository at this point in the history
Add support to specify RPC library
  • Loading branch information
emkemp authored Oct 13, 2022
2 parents 1d7ec9e + f50ddd2 commit 2e3267a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
9 changes: 8 additions & 1 deletion ldt/arch/Config.pl
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,13 @@
$libjpeg = "-ljpeg";
}

if(defined($ENV{LDT_RPC})){
$librpc = "-ltirpc";
}
else{
$librpc = "";
}

if($sys_arch eq "linux_ifc") {
if($use_omp == 1) {
if($use_endian == 1) {
Expand Down Expand Up @@ -704,7 +711,7 @@
if($use_hdf4 == 1){
$fflags77 = $fflags77." -I\$(INC_HDF4) ";
$fflags = $fflags." -I\$(INC_HDF4) ";
$ldflags = $ldflags." -L\$(LIB_HDF4) -lmfhdf -ldf ".$libjpeg." -lz ";
$ldflags = $ldflags." -L\$(LIB_HDF4) -lmfhdf -ldf ".$libjpeg." -lz ".$librpc;
}
if($use_hdf5 == 1){
$fflags77 = $fflags77." -I\$(INC_HDF5) ";
Expand Down
9 changes: 8 additions & 1 deletion lis/arch/Config.pl
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,13 @@
$libjpeg = "-ljpeg";
}

if(defined($ENV{LIS_RPC})){
$librpc = "-ltirpc";
}
else{
$librpc = "";
}

if($ENV{ESMF_TRACE} > 0){
$use_esmf_trace = 1
}
Expand Down Expand Up @@ -869,7 +876,7 @@
if($use_hdf4 == 1){
$fflags77 = $fflags77." -I\$(INC_HDF4)";
$fflags = $fflags." -I\$(INC_HDF4)";
$ldflags = $ldflags." -L\$(LIB_HDF4) -lmfhdf -ldf ".$libjpeg." -lz";
$ldflags = $ldflags." -L\$(LIB_HDF4) -lmfhdf -ldf ".$libjpeg." -lz ".$librpc;
}
if($use_hdf5 == 1){
$fflags77 = $fflags77." -I\$(INC_HDF5)";
Expand Down
9 changes: 8 additions & 1 deletion lvt/arch/Config.pl
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,13 @@
$libjpeg = "-ljpeg";
}

if(defined($ENV{LVT_RPC})){
$librpc = "-ltirpc";
}
else{
$librpc = "";
}

if($sys_arch eq "linux_ifc") {
if ($use_endian == 1 ) {
$cflags = "-c ".$sys_c_opt." -traceback -DIFC";
Expand Down Expand Up @@ -611,7 +618,7 @@
if($use_hdf4 == 1){
$fflags77 = $fflags77." -I\$(INC_HDF4) ";
$fflags = $fflags." -I\$(INC_HDF4) ";
$ldflags = $ldflags." -L\$(LIB_HDF4) -lmfhdf -ldf ".$libjpeg." -lz ";
$ldflags = $ldflags." -L\$(LIB_HDF4) -lmfhdf -ldf ".$libjpeg." -lz ".$librpc;
}
if($use_hdf5 == 1){
$fflags77 = $fflags77." -I\$(INC_HDF5) ";
Expand Down

0 comments on commit 2e3267a

Please sign in to comment.