]> OCCT Git - occt-wok.git/commitdiff
No comments
authorcas <cas@opencascade.com>
Wed, 9 Feb 2000 18:45:54 +0000 (18:45 +0000)
committercas <cas@opencascade.com>
Wed, 9 Feb 2000 18:45:54 +0000 (18:45 +0000)
src/WOKLibs/WOKLibs_LINKSHR.edl

index b03c5342ff45aba5fa90e248290c0dcba04e8190..fdfe0ed1a262364d5b06045917fbba81f92bbe42 100755 (executable)
@@ -1,18 +1,41 @@
-@ifnotdefined ( %WOKLibs_LINKSHR_EDL ) then
+--@ifnotdefined ( %WOKLibs_LINKSHR_EDL ) then
  @set %WOKLibs_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 ;
+    $ 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;