Bug 251 - configure ignores LDFLAGS environment variable
configure ignores LDFLAGS environment variable
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Configure
1.6.9
PC FreeBSD
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-19 16:42 MDT by Patrick Wolfe
Modified: 2007-06-19 17:22 MDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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