diff options
| author | Cory Fields <[email protected]> | 2018-08-23 17:24:15 -0400 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2018-08-23 17:43:35 -0400 |
| commit | 0d00fd5901102d9ca2b99d6f17a3bd96c946e3b7 (patch) | |
| tree | e8a77039a2c30f05a7af255639669d5de88a7819 /depends | |
| parent | Merge #14018: Bugfix: NSIS: Exclude Makefile* from docs (diff) | |
| download | discoin-0d00fd5901102d9ca2b99d6f17a3bd96c946e3b7.tar.xz discoin-0d00fd5901102d9ca2b99d6f17a3bd96c946e3b7.zip | |
depends: allow CC/CXX to be overridden during configure
Diffstat (limited to 'depends')
| -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 8444dc26f..b7a5e795c 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 |