summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2014-03-21 17:29:40 +0000
committerNeil Roberts <neil@linux.intel.com>2014-03-21 17:38:32 +0000
commit94002eaf7c5495088f2c1987007971ab37950f8a (patch)
tree04b6b72e258f3ad3fb8cb903b16fe06fab865f4d
parent2e6156ef5ee5d5855b0ac17bb254bd8a55ba2c5c (diff)
downloadcogl-94002eaf7c5495088f2c1987007971ab37950f8a.tar.gz
mingw: Try adding a -w64 suffix when searching for a suitable compiler
On 64-bit fedora the 32-bit MinGW compiler is called i686-w64-mingw32-gcc which wasn't being picked up by the mingw-fetch-depdencies script. Reviewed-by: Robert Bragg <robert.bragg@intel.com> (cherry picked from commit f5f0342315e524523c50549e91eb9ff1683ab558)
-rwxr-xr-xbuild/mingw/mingw-fetch-dependencies.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/mingw/mingw-fetch-dependencies.sh b/build/mingw/mingw-fetch-dependencies.sh
index 6544bfe0..30e2ac7b 100755
--- a/build/mingw/mingw-fetch-dependencies.sh
+++ b/build/mingw/mingw-fetch-dependencies.sh
@@ -153,7 +153,7 @@ function find_compiler ()
local gccbin fullpath;
if [ -z "$MINGW_TOOL_PREFIX" ]; then
- for gccbin in i{3,4,5,6}86{-pc,}-mingw32{,msvc}-gcc; do
+ for gccbin in i{3,4,5,6}86{-pc,-w64,}-mingw32{,msvc}-gcc; do
fullpath="`which $gccbin 2>/dev/null`";
if [ "$?" -eq 0 ]; then
MINGW_TOOL_PREFIX="${fullpath%%gcc}";