Bug 1132 - cannot specify compiler options
Summary: cannot specify compiler options
Status: CLOSED INVALID
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Build system (show other bugs)
Version: 4.2p1
Hardware: ix86 Linux
: P2 minor
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-09 13:39 AEDT by Adam Chou
Modified: 2006-10-07 11:43 AEST (History)
0 users

See Also:


Attachments
Provide hint for usage of --with-cflags and friends (1.60 KB, patch)
2005-12-09 14:14 AEDT, Darren Tucker
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Chou 2005-12-09 13:39:20 AEDT
--with-cppflags, --with-cflags, --with-ldflags, --with-libs, --with-Werror do not work. i'm still somewhat new to this whole autoconf/bash programming thing but i'm pretty sure i'm right and i don't see how this condition will ever be true...

if test -n "$withval"  &&  test "x$withval" != "xno"  &&  \
		    test "x${withval}" != "xyes"; then

it is required in order to use any of the above --with options. if i specify --with-thteoption=maybe or any other arbitrary string so that the above condition evalutates to true, it ./configure crashes with the following message
configure: error: *** compiler cannot create working executables, check config.log ***
Comment 1 Darren Tucker 2005-12-09 14:13:17 AEDT
You need to specify the flags you want to add, for example:
./configure --with-cflags=-save-temps && make

Perhaps configure's help output could be a bit more, well, helpful.
Comment 2 Darren Tucker 2005-12-09 14:14:29 AEDT
Created attachment 1037 [details]
Provide hint for usage of --with-cflags and friends
Comment 3 Darren Tucker 2006-10-07 11:43:38 AEST
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.