diff --git a/build/make/ads2armasm_ms.pl b/build/make/ads2armasm_ms.pl
index 1def53901d42fb0e214c571b692af2d37f4a40c1..95c80840301d7ef1446c1794ea29547c74956ea2 100755
--- a/build/make/ads2armasm_ms.pl
+++ b/build/make/ads2armasm_ms.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 ##
 ##  Copyright (c) 2013 The WebM project authors. All Rights Reserved.
 ##
diff --git a/build/make/thumb.pm b/build/make/thumb.pm
index d8d04aa85ae42257c87df6b0955e03ba075b07c9..9604c8e32a001e6c326d15aa5e1c4473dd430d2d 100644
--- a/build/make/thumb.pm
+++ b/build/make/thumb.pm
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 ##
 ##  Copyright (c) 2013 The WebM project authors. All Rights Reserved.
 ##