summaryrefslogtreecommitdiff
path: root/cmd/dtrace/test/tst/common/usdt/tst.enabled2.ksh
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dtrace/test/tst/common/usdt/tst.enabled2.ksh')
-rw-r--r--cmd/dtrace/test/tst/common/usdt/tst.enabled2.ksh5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/dtrace/test/tst/common/usdt/tst.enabled2.ksh b/cmd/dtrace/test/tst/common/usdt/tst.enabled2.ksh
index 9b71ac26377c6..340164847bfb6 100644
--- a/cmd/dtrace/test/tst/common/usdt/tst.enabled2.ksh
+++ b/cmd/dtrace/test/tst/common/usdt/tst.enabled2.ksh
@@ -23,6 +23,7 @@
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
+#ident "%Z%%M% %I% %E% SMI"
#
# This test is primarily intended to verify a fix for SPARC, but there's no
@@ -76,7 +77,7 @@ main(int argc, char **argv)
}
EOF
-gcc -c test.c
+cc -c -xO2 test.c
if [ $? -ne 0 ]; then
print -u2 "failed to compile test.c"
exit 1
@@ -86,7 +87,7 @@ if [ $? -ne 0 ]; then
print -u2 "failed to create DOF"
exit 1
fi
-gcc -o test test.o prov.o
+cc -o test test.o prov.o
if [ $? -ne 0 ]; then
print -u2 "failed to link final executable"
exit 1