Hans-Christoph Steiner wrote:
> I am currently making a package for libhid (http://
> libhid.alioth.debian.org/) which depends on libusb. The libusb build
> flags are causing an error related to pkgconfig so I currently have a
> kludge to work around this.
>
>
> Here's the error:
>
> Validating .deb dir root-libhid0-0.2.16-1...
> Error: The -Wl,-framework flag may get munged by pkg-config. See the
> gcc manpage for information about passing options to flags for
> specific compiler passes.
> Offending file: /sw/lib/pkgconfig/libhid.pc
> Offending line: Libs: -L/sw/lib -lusb -Wl,-framework -
> Wl,IOKit -Wl,-framework -Wl,CoreFoundation -Wl,-prebind -L${libdir} -
> lhid
The reason for the validator to protest here is that pkg-config has a
bug that will remove one of the -Wl,-framework flags in its output. See
the discussion on fink-Bugs-978293.
What libusb should do (and the libusb.info file contains traces of an
older effort to do so) is to replace
-Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation
by what is equivalent for the linker:
-Wl,-framework,IOKit -Wl,-framework,CoreFoundation
[]
> I've never used/seen these -Wl,-framework, etc, flags before. Anyone
Read man gcc.
> know why they can't just be -framework IOKit -framework
> CoreFoundation?
That would be worse. In addition to pkg-config eating one of the
-framework flags, libtool would probably create another disaster by
ordering these four words alphabetically...
> Ideally this would be fixed with the libusb package
> rather than a kludge in the libhid package.
Yes. I put a new revision libusb-0.1.12-1011 into 10.4/unstable that is
supposed to fix this. Please try.
--
Martin
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel