From 90c76c06c09a83d76c3fb00768bad09fe747c3c3 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 9 Dec 2015 19:26:33 +0100 Subject: 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. --- test/math/Makefile.in | 2 +- test/math/gen-libm-test.pl | 2 +- 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 , 1999. -- cgit v1.2.3