From 573b2f75fbc1de1572ac885804a94ff8ae7d499a Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Mon, 17 Apr 2006 07:04:56 +0000 Subject: r15099: An attempt to fix BSD make portability issues. With these changes Samba 4 builds successfully on NetBSD 3.0 (This used to be commit 71ea07e72d71b06166e0384950df83061a4677b8) --- source4/script/buildtree.pl | 4 ++-- source4/script/cflags.pl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/script') diff --git a/source4/script/buildtree.pl b/source4/script/buildtree.pl index 41cbb3ad76..be5170e7d1 100644 --- a/source4/script/buildtree.pl +++ b/source4/script/buildtree.pl @@ -1,5 +1,5 @@ -#! /usr/bin/perl -w - eval 'exec /usr/bin/perl -S $0 ${1+"$@"}' +#! /usr/bin/env perl -w + eval 'exec /usr/bin/env perl -S $0 ${1+"$@"}' if 0; #$running_under_some_shell use strict; diff --git a/source4/script/cflags.pl b/source4/script/cflags.pl index c848b56e7d..7ca8f12404 100755 --- a/source4/script/cflags.pl +++ b/source4/script/cflags.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # This is a hack to allow per target cflags. It isn't very elegant, but it # is the most portable idea we have come up with yet -- cgit