Bug 1132

Summary: cannot specify compiler options
Product: Portable OpenSSH Reporter: Adam Chou <mistamajik>
Component: Build systemAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED INVALID    
Severity: minor    
Priority: P2    
Version: 4.2p1   
Hardware: ix86   
OS: Linux   
Attachments:
Description Flags
Provide hint for usage of --with-cflags and friends none

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.