diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2018-08-23 17:24:15 -0400 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2018-08-23 17:43:35 -0400 |
commit | 0d00fd5901102d9ca2b99d6f17a3bd96c946e3b7 (patch) | |
tree | e8a77039a2c30f05a7af255639669d5de88a7819 /depends/config.site.in | |
parent | 271b379e636afa419c5208cb462c07090490266c (diff) |
depends: allow CC/CXX to be overridden during configure
Diffstat (limited to 'depends/config.site.in')
-rw-r--r-- | depends/config.site.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/depends/config.site.in b/depends/config.site.in index 8444dc26f2..b7a5e795c8 100644 --- a/depends/config.site.in +++ b/depends/config.site.in @@ -61,9 +61,12 @@ fi CPPFLAGS="-I$depends_prefix/include/ $CPPFLAGS" LDFLAGS="-L$depends_prefix/lib $LDFLAGS" -CC="@CC@" -CXX="@CXX@" -OBJC="${CC}" +if test -n "@CC@" -a -z "${CC}"; then + CC="@CC@" +fi +if test -n "@CXX@" -a -z "${CXX}"; then + CXX="@CXX@" +fi PYTHONPATH=$depends_prefix/native/lib/python/dist-packages:$PYTHONPATH if test -n "@AR@"; then |