aboutsummaryrefslogtreecommitdiff
path: root/depends/config.site.in
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2018-08-23 17:24:15 -0400
committerCory Fields <cory-nospam-@coryfields.com>2018-08-23 17:43:35 -0400
commit0d00fd5901102d9ca2b99d6f17a3bd96c946e3b7 (patch)
treee8a77039a2c30f05a7af255639669d5de88a7819 /depends/config.site.in
parent271b379e636afa419c5208cb462c07090490266c (diff)
depends: allow CC/CXX to be overridden during configure
Diffstat (limited to 'depends/config.site.in')
-rw-r--r--depends/config.site.in9
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