-@ifnotdefined ( %TKWOK_LINKSHR_EDL ) then
+--@ifnotdefined ( %TKWOK_LINKSHR_EDL ) then
@set %TKWOK_LINKSHR_EDL = "";
@if ( %Station == "lin" ) then
@template LINKSHR_Footer () is
$ -ltcl -ldl;
+ $ set ld_status=$status;
+ $ if ( $?LD_LIBRARY_PATH ) then
+ $ set ld_library_path=$LD_LIBRARY_PATH
+ $ endif
@end;
@template LINKSHR_CheckUndefFooter () is
- $ -ltcl -ldl;
+ $ ;
+ $ set status=$ld_status
+ $ if ( $?ld_library_path ) then
+ $ setenv LD_LIBRARY_PATH $ld_library_path
+ $ else
+ $ unsetenv LD_LIBRARY_PATH
+ $ endif
@end;
@else @if ( %Station == "sun" ) then
@template LINKSHR_Footer () is
- $ -lC -lc -lxnet ;
+ $ -lC -lc -lm -ldl -lsunmath -lxnet ;
+ $ set ld_status=$status;
+ $ if ( $?LD_LIBRARY_PATH ) then
+ $ set ld_library_path=$LD_LIBRARY_PATH
+ $ endif
@end;
+ @template LINKSHR_CheckUndefFooter () is
+ $ ;
+ $ set status=$ld_status
+ $ if ( $?ld_library_path ) then
+ $ setenv LD_LIBRARY_PATH $ld_library_path
+ $ else
+ $ unsetenv LD_LIBRARY_PATH
+ $ endif
+ @end;
@set %LINKSHR_DBMSOpt = "";
@endif;
@endif;
-@endif;
+--@endif;