]> 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/TKWOK/TKWOK_LINKSHR.edl

index f6cd0b4caeaa7986a02c7e7b11c47a02ec751480..33ffa1861bdcb1c2ee10643a2553d08e821aedcb 100755 (executable)
@@ -1,18 +1,41 @@
-@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;