summaryrefslogtreecommitdiff
path: root/test/math
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-12-09 19:26:33 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-12-09 19:26:33 +0100
commit90c76c06c09a83d76c3fb00768bad09fe747c3c3 (patch)
treea842ebaf85593d9c83a9e8e215e1d468072d98a1 /test/math
parent1e28bdaabba3cdc26df028d70f9e15e055e75587 (diff)
do not hardcode path to perl
When cross-compiling on other Unix systems like FreeBSD 10.x, perl is not in /usr/bin. Use env to find the perl interpreter and use no fixed path when executing via make.
Diffstat (limited to 'test/math')
-rw-r--r--test/math/Makefile.in2
-rwxr-xr-xtest/math/gen-libm-test.pl2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/math/Makefile.in b/test/math/Makefile.in
index 9fbd58ab8..387400151 100644
--- a/test/math/Makefile.in
+++ b/test/math/Makefile.in
@@ -28,7 +28,7 @@ endif
EXTRA_CFLAGS := -fno-builtin
EXTRA_LDFLAGS := -lm
-PERL := /usr/bin/perl
+PERL := perl
MDEPS := $(wildcard test-*.c)
$(MDEPS): libm-test.c
diff --git a/test/math/gen-libm-test.pl b/test/math/gen-libm-test.pl
index 0bb2b46a0..118f352fa 100755
--- a/test/math/gen-libm-test.pl
+++ b/test/math/gen-libm-test.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# Copyright (C) 1999 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# Contributed by Andreas Jaeger <aj@suse.de>, 1999.