[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
config.guess and pgcc Portland Group Compiler
From: |
Urs Janßen |
Subject: |
config.guess and pgcc Portland Group Compiler |
Date: |
Fri, 7 Feb 2014 11:20:31 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
The brute-force patch below fixes an issue with pgcc as $CC in Linux.
Problem:
~ > ./config.guess
config.guess: 1: eval: LIBC: not found
x86_64-unknown-linux-gnu
Root cause - additional whitespaces introduced:
~ > grep ^LIBC /tmp/cgRTvJMC/dummy.c
LIBC=uclibc
LIBC=dietlibc
LIBC=gnu
~ > pgcc -E /tmp/cgRTvJMC/dummy.c 2>/dev/null | grep ^LIBC
LIBC = gnu
After the patch:
~ > ./config.guess
x86_64-unknown-linux-gnu
--- config.guess 2013-11-28 08:53:11.611315464 +0100
+++ config.guess 2014-02-07 11:11:22.006791334 +0100
@@ -149,7 +149,7 @@
LIBC=gnu
#endif
EOF
- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | tr -d ' '`
;;
esac
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- config.guess and pgcc Portland Group Compiler,
Urs Janßen <=