| Summary: | configure adds opensc libs to LDFLAGS when it should use LIBS | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Mike Frysinger <vapier> | ||||
| Component: | Build system | Assignee: | Assigned to nobody <unassigned-bugs> | ||||
| Status: | CLOSED FIXED | ||||||
| Severity: | normal | ||||||
| Priority: | P2 | ||||||
| Version: | -current | ||||||
| Hardware: | Other | ||||||
| OS: | Linux | ||||||
| Attachments: |
|
||||||
Created attachment 1186 [details]
openssh-opensc-libs.patch
patch against current portable openssh cvs tree
Looks sane and test OK here. Applied, thanks. Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4. |
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