[Bug 1234] configure adds opensc libs to LDFLAGS when it should use LIBS
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Sat Sep 23 14:53:59 EST 2006
http://bugzilla.mindrot.org/show_bug.cgi?id=1234
Summary: configure adds opensc libs to LDFLAGS when it should use
LIBS
Product: Portable OpenSSH
Version: -current
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Build system
AssignedTo: bitbucket at mindrot.org
ReportedBy: vapier at gentoo.org
configure.ac does this:
LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS"
since we're grabbing libs, we actually want to be sticking that into
LIBS
otherwise, when the binaries get linked, they're of the form:
$(CC) <objects> -o ssh $LDFLAGS <sshlibs> $LIBS
so -lopensc goes into LDFLAGS instead of LIBS and if we use something
like -static or --as-needed in LDFLAGS, the build aborts because the
<sshlibs> use symbols from -lopensc but -lopensc is discarded before
sshlibs get processed
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the openssh-bugs
mailing list