From: ribes Date: Wed, 18 May 2011 11:34:25 +0000 (+0000) Subject: DSO problem on fort2 example X-Git-Tag: V6_3_0~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2c0d6b631fa2c9d737b8165fdd36c12b67bc4c65;p=tools%2Fyacsgen.git DSO problem on fort2 example --- diff --git a/Examples/fort2/Makefile b/Examples/fort2/Makefile index 231472e..6b6b698 100644 --- a/Examples/fort2/Makefile +++ b/Examples/fort2/Makefile @@ -21,12 +21,12 @@ include ../makefile.inc all:prog1 prog2 prog1:code1.o - $(FC) -o prog1 code1.o -L./install/lib/salome -lfcode1Exelib + $(FC) -o prog1 code1.o -L./install/lib/salome -lfcode1Exelib -L$(KERNEL_ROOT_DIR)/lib/salome -lCalciumC code1.o:code1.f $(FC) -c code1.f -I$(KERNEL_ROOT_DIR)/include/salome -fexceptions prog2:code2.o - $(FC) -o prog2 code2.o -L./install/lib/salome -lfcode2Exelib + $(FC) -o prog2 code2.o -L./install/lib/salome -lfcode2Exelib -L$(KERNEL_ROOT_DIR)/lib/salome -lCalciumC code2.o:code2.f $(FC) -c code2.f -I$(KERNEL_ROOT_DIR)/include/salome -fexceptions diff --git a/Examples/fort2/prog1.sh b/Examples/fort2/prog1.sh index 3d1a3b2..4f1f3d0 100755 --- a/Examples/fort2/prog1.sh +++ b/Examples/fort2/prog1.sh @@ -1,5 +1,7 @@ #!/bin/bash -/local/cchris/Salome/YACSGEN/V6/YACSGEN/Examples/fort2/prog1 + +script_path=$(dirname $(readlink -f $0)) +$script_path/prog1 echo "End of shell" diff --git a/Examples/fort2/prog2.sh b/Examples/fort2/prog2.sh index 0369f89..8299c97 100755 --- a/Examples/fort2/prog2.sh +++ b/Examples/fort2/prog2.sh @@ -1,5 +1,6 @@ #!/bin/bash -/local/cchris/Salome/YACSGEN/V6/YACSGEN/Examples/fort2/prog2 +script_path=$(dirname $(readlink -f $0)) +$script_path/prog2 echo "End of shell"