[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tag inference broken?
From: |
Peter O'Gorman |
Subject: |
tag inference broken? |
Date: |
Sat, 06 Dec 2003 22:57:52 +0900 |
User-agent: |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030902 Thunderbird/0.2 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Okay, I must be stupid, the tag inference goes like this:
case $base_compile in
# Blanks in the command may have been stripped by the calling shell,
# but not from the CC environment variable when configure was run.
" $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "*) ;;
# Blanks at the start of $base_compile will cause this to fail
# if we don't check for them as well.
Now, $CC is allowed to be a program name with arguments (isn't it?), but
at this point $base_compile only contains the program name "gcc" in my
case, so when I set CC to (on darwin) "gcc -arch ppc -arch i386" and set
CXX to "g++ -arch ppc -arch i386" I expected (without having looked at
the code) tag inference to work. It doesn't of course.
Is the test broken? Should it be the other way around? (case $CC in
"$base_compile "*) Or am I missing something really important here?
Yes, I know I could just make a cc wrapper which adds the arguments I
want and set CC to that wrapper, but I'd prefer libtool to handle this
intelligently.
Peter
- --
Peter O'Gorman - http://www.pogma.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iQCVAwUBP9HgXbiDAg3OZTLPAQKwKgQAoJJ41nClzDmIYsq4DJGYeerQ3F//8g20
xv6rWGhQsu2lxGkYjE3qbfT6q9Knv0xdQwrYbxMgPYyMzQHvBLouQ6JruJiJ7aaV
rBtv5EtSl11RItGbLT+GYAXzutb1/K3mvtKxNiiqsTTpxECKe+3X85TfExsUPGAo
qND1VP8wubw=
=8n3A
-----END PGP SIGNATURE-----
- tag inference broken?,
Peter O'Gorman <=