Do not hardcode binary's name in templates.

This may change from on host platform to another. Use the cross_env.
This commit is contained in:
Matthieu Gautier
2017-02-06 17:33:39 +01:00
parent 2451c35d79
commit b205526bb2
4 changed files with 20 additions and 15 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/sh
#!/bin/sh
if test -z "$PATH_ORIG" ; then
@ -10,10 +10,10 @@ PATH="{root_path}/bin:$PATH_ORIG"; export PATH;
HOST_CC=gcc; export HOST_CC;
unset PKG_CONFIG_PATH;
CC={which.i686-w64-mingw32-gcc}; export CC
AR={which.i686-w64-mingw32-ar}; export AR
CXX={which.i686-w64-mingw32-g++}; export CXX
STRIP={which.i686-w64-mingw32-strip}; export STRIP
CC={which:{binaries[c]}}; export CC
AR={which:{binaries[ar]}}; export AR
CXX={which:{binaries[cpp]}}; export CXX
STRIP={which:{binaries[strip]}}; export STRIP
CFLAGS=" -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4"; export CFLAGS;
CXXFLAGS=" -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4"; export CXXFLAGS;