Possible bug in openssh configuration file
Jim Knoble
jmknoble at jmknoble.cx
Mon Jun 4 07:27:48 EST 2001
Circa 2001-May-31 11:12:53 +0200 dixit Alain Aubord:
: Dear Sirs,
: I was trying to compile openssh for Solaris 2.8 in 64bits mode.
: For that, I have defined the variable CFLAGS with the following value
: "-fast -I/isdc/include -L/isdc/lib -xtarget=ultra -xarch=v9" before
: running the configure command.
Some of those options shouldn't be in CFLAGS; they should be in LDFLAGS.
I don't know which compiler you're using (doesn't look like gcc), but
probably you mean:
CFLAGS="-fast -I/isdc/include -xtarget=ultra -xarch=v9" \
LDFLAGS="-fast -L/isdc/lib -xtarget=ultra -xarch=v9" \
./configure --prefix=...
: All goes correctly except that the command for doing the link of
: executable is not called with the content of variable "CFLAGS" (as you
: can see in the following extract of compile log). This is annoying since
: the linking can not be done (without correct parameter, 32bits linking
: is done). The solution I have used is to do the link manually with the
: content of the variable CFLAGS and that has worked. But I have spent
: some time to find that.
You need to use LDFLAGS for link-time options; CFLAGS is for
compile-time options (and CPPFLAGS is often used for preprocessor-time
options, such as -I or -D).
--
jim knoble | jmknoble at jmknoble.cx | http://www.jmknoble.cx/
(GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 249 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20010603/2aed611e/attachment.bin
More information about the openssh-unix-dev
mailing list