projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e7f186
)
fix invalid C in new trycppif tests in configure script
author
Rich Felker
<dalias@aerifal.cx>
Fri, 19 Jul 2013 00:37:19 +0000
(20:37 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 19 Jul 2013 00:37:19 +0000
(20:37 -0400)
an empty program is not valid and would be reasonable grounds for the
compiler to give an error, which would break these tests.
configure
patch
|
blob
|
history
diff --git
a/configure
b/configure
index 042c41bd28790d98837748644d73de89a0143a76..b679986f7179dafd54683018ac0a0dbd5142a0a4 100755
(executable)
--- a/
configure
+++ b/
configure
@@
-56,7
+56,8
@@
while eval "fnmatch '*/' \"\${$1}\"" ; do eval "$1=\${$1%/}" ; done
trycppif () {
printf "checking preprocessor condition %s... " "$1"
-echo "#if $1" > "$tmpc"
+echo "typedef int x;" > "$tmpc"
+echo "#if $1" >> "$tmpc"
echo "#error yes" >> "$tmpc"
echo "#endif" >> "$tmpc"
if $CC $2 -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then