tst.linkunpriv.ksh (211545) | tst.linkunpriv.ksh (288413) |
---|---|
1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 55 unchanged lines hidden (view full) --- 64}; 65EOF 66 67cc -c test.c 68if [ $? -ne 0 ]; then 69 print -u2 "failed to compile test.c" 70 exit 1 71fi | 1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 55 unchanged lines hidden (view full) --- 64}; 65EOF 66 67cc -c test.c 68if [ $? -ne 0 ]; then 69 print -u2 "failed to compile test.c" 70 exit 1 71fi |
72$dtrace -G -32 -s prov.d test.o | 72$dtrace -G -s prov.d test.o |
73if [ $? -ne 0 ]; then 74 print -u2 "failed to create DOF" 75 exit 1 76fi 77cc -o test test.o prov.o 78if [ $? -ne 0 ]; then 79 print -u2 "failed to link final executable" 80 exit 1 81fi 82 83cd / 84/bin/rm -rf $DIR | 73if [ $? -ne 0 ]; then 74 print -u2 "failed to create DOF" 75 exit 1 76fi 77cc -o test test.o prov.o 78if [ $? -ne 0 ]; then 79 print -u2 "failed to link final executable" 80 exit 1 81fi 82 83cd / 84/bin/rm -rf $DIR |