From 570bc9afbd4d24da4174a656091df2a25980f4a7 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 6 Nov 2016 17:29:33 +0100 Subject: [PATCH] Fix spurious define in openblas_config.h 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/getarch.c b/getarch.c index 0c5f4def3..6602562a1 100644 --- 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 ++; }