summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/xcompile/xcompile2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 8b20d662f5..97dd7c4004 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -161,7 +161,9 @@ detect_special_flags() {
}
detect_compiler_runtime() {
+ test -z "$CLANG" || \
CC_RT_CLANG="`${CLANG} ${CFLAGS} -print-librt-file-name`"
+ test -z "$GCC" || \
CC_RT_GCC="`${GCC} ${CFLAGS} -print-libgcc-file-name`"
}