Fix spurious define in openblas_config.h
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Sun, 6 Nov 2016 16:29:33 +0000 (17:29 +0100)
committerGitHub <noreply@github.com>
Sun, 6 Nov 2016 16:29:33 +0000 (17:29 +0100)
TARGET as specified with make is already return-terminated when getarch reads it. This led to an empty line written to config_last.h that awk in Makefile.install then expanded to a spurious "#define OPENBLAS_" in openblas_config.h (as noted by "kmb" on the mailing list)

getarch.c

index 0c5f4de..6602562 100644 (file)
--- a/getarch.c
+++ b/getarch.c
@@ -1098,6 +1098,7 @@ int main(int argc, char *argv[]){
              p ++;
            }
          } else {
+           if (*p != '\n')
            printf("%c", *p);
            p ++;
          }