Bug 251

Summary: configure ignores LDFLAGS environment variable
Product: Sudo Reporter: Patrick Wolfe <pwolfe>
Component: ConfigureAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: low    
Version: 1.6.9   
Hardware: PC   
OS: FreeBSD   

Description Patrick Wolfe 2007-06-19 16:42:08 MDT
on FreeBSD 6.2, I need to use -I/usr/local/include and -L/usr/local/lib to get LDAP support included.  I followed the instructions in configure, and ran:

CFLAGS="-O2 -I/usr/local/include" LDFLAGS="-L/usr/local/lib" ./configure --with-ldap

but the resulting Makefile has

LDFLAGS=

workaround: edit Makefile after running configure, and change LDFLAGS appropriately
Comment 1 Todd C. Miller 2007-06-19 16:52:47 MDT
The proper thing to do is use --with-lap=/usr/local
Comment 2 Todd C. Miller 2007-06-19 17:22:57 MDT
There was a line out of place in configure.in that was causing LDFLAGS to get cleared in the --with-ldap case.  The fix is in cvs and will appear in 1.6.9 beta3