[DTrace-devel] [PATCH 5/7] test: fix tst.provregex2.sh for new gcc by reordering compile arguments
eugene.loh at oracle.com
eugene.loh at oracle.com
Fri Aug 14 10:43:22 PDT 2020
From: "David P. McLean" <david.mclean at oracle.com>
Newer versions of gcc (e.g. 9.3.0) error out on the simple compile called
for in test/unittest/pid/tst.provregex2.sh
The order of arguments is shifted in this commit, resulting in proper
operation for both newer gcc and older versions (e.g. 4.8.5)
Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
Signed-off-by: David Mc Lean <david.mclean at oracle.com
Reviewed-by: Kris Van Hees <kris.van.hees at oracle.com>
---
test/unittest/pid/tst.provregex2.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/unittest/pid/tst.provregex2.sh b/test/unittest/pid/tst.provregex2.sh
index 5368464c..59bbf907 100755
--- a/test/unittest/pid/tst.provregex2.sh
+++ b/test/unittest/pid/tst.provregex2.sh
@@ -24,7 +24,7 @@ cat > $DIR/Makefile <<EOF
all: main altlib.so
main: main.o
- cc -o main -ldl main.o
+ cc -o main main.o -ldl
main.o: main.c
cc -c main.c
--
2.18.4
More information about the DTrace-devel
mailing list