]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
set this where the compiler type is set... graphitemaster/configure-script
authorWolfgang Bumiller <wry.git@bumiller.com>
Mon, 16 Dec 2013 14:04:28 +0000 (15:04 +0100)
committerWolfgang Bumiller <wry.git@bumiller.com>
Mon, 16 Dec 2013 14:04:28 +0000 (15:04 +0100)
configure

index e9a7494fd9b8cb95479f84848131a0c6c5bd3351..28bb83a07e9162936b2b04e146007b405c7af4cb 100755 (executable)
--- a/configure
+++ b/configure
@@ -162,8 +162,10 @@ msg 'using CC = %s' "${CC}"
 
 # We might add support for different compilers with a different CLI
 cf_cctype="gcc"
+cf_dynamic_depends=1
 
 if [ "x${CC}" != "xclang" -a "x${CC}" != "gcc" -a "x${CC}" != "g++" ]; then
+  cf_dynamic_depends=0
   msg "checking compiler type"
   cf_ccver="$(${CC} -v 2>&1)"
   [ $? -eq 0 ] || die "Failed to retrieve compiler version info"
@@ -340,7 +342,6 @@ print_targets() {
     echo "${obj}: ${c_src}"
     printf '\t$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ "%s"' "${c_src}"
     if [ "x$cf_cctype" == "xgcc" ]; then
-      cf_dynamic_depends=1
       printf ' -MMD -MF "%s" -MT $@\n' "${d_inc}"
     else
       echo