1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00
occt/samples/java/adm/SunOS/TKjcas.lnk
2012-03-05 19:23:40 +04:00

50 lines
1.4 KiB
Plaintext
Executable File

if (!($?CCHOME)) setenv CCHOME "/opt/DEV5_1/SUNWspro/bin/CC "
if (!($?CCFLAGS)) setenv CCFLAGS "-xchip=ultra -xarch=v8 -G -mt "
if (!($?STLPortHome)) then
setenv STLPortLib "."
else
if (!($?STLPortLib_CC)) setenv STLPortLib_CC "stlport_gcc"
if (!($?STLPortLib)) setenv STLPortLib "$STLPortHome/lib"
setenv STLPortLib "$STLPortLib -l$STLPortLib_CC"
endif
${CCHOME} ${CCFLAGS} -o ${SAMPLE_ROOT}/${STATION}/lib//libTKjcas.so \
-L${SAMPLE_ROOT}/${STATION}/lib \
-L${CASROOT}/${STATION}/lib -L${STLPortLib} \
\
${SAMPLE_ROOT}/${STATION}/obj/jcas/jcas.o \
${SAMPLE_ROOT}/${STATION}/obj/jcas/jcas_Object.o \
${SAMPLE_ROOT}/${STATION}/obj/jcas/jcas_Transient.o \
\
-lTKernel \
-lsocket -lnsl -lsunmath -lm -ldl \
-lC -lc ;
set ld_status=$status
if ( $?LD_LIBRARY_PATH ) then
set ld_library_path=$LD_LIBRARY_PATH
endif
if ( $?LD_LIBRARY_PATH ) then
setenv LD_LIBRARY_PATH ${SAMPLE_ROOT}/${STATION}/lib:${CASROOT}/${STATION}/lib::${LD_LIBRARY_PATH}
else
setenv LD_LIBRARY_PATH ${SAMPLE_ROOT}/${STATION}/lib:${CASROOT}/${STATION}/lib:
endif
echo "Check of undefined symbols with LD_LIBRARY_PATH : $LD_LIBRARY_PATH"
/usr/ccs/bin/ld -o /dev/null \
\
${SAMPLE_ROOT}/${STATION}/lib//libTKjcas.so\
-lTKernel \
;
if ( $status ) then
echo "Check failed"
else
echo "Check successed"
endif
if ( $?ld_library_path ) then
setenv LD_LIBRARY_PATH $ld_library_path
else
unsetenv LD_LIBRARY_PATH
endif
set status=$ld_status