From a6d27c3bca9e9ed591ae4a6e90666a027dcef2b0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 19 Oct 2019 10:31:19 +0200 Subject: Pass compiler mode as part of config.{c,cxx} in environment scripts --- etc/environments/default | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'etc/environments/default') diff --git a/etc/environments/default b/etc/environments/default index 16e39d1..2155f72 100755 --- a/etc/environments/default +++ b/etc/environments/default @@ -24,10 +24,10 @@ set -e # Exit on errors. mode= case "$1" in x86_64-*) - #mode="config.cc.coptions+=-m64" + #mode=-m64 ;; i?86-*) - mode="config.cc.coptions+=-m32" + mode=-m32 ;; *) echo "unknown target: '$1'" 1>&2 @@ -36,4 +36,4 @@ case "$1" in esac shift -exec "$@" cc config.c="$c" config.cxx="$cxx" $mode +exec "$@" cc config.c="$c $mode" config.cxx="$cxx $mode" -- cgit v1.1