mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-05 18:08:02 +02:00
Check for and link against libplist
src/linux/up-device-idevice.c explicitly uses libplist, so check for it in configure.ac. With gcc 4.5 private requirements of libraries aren't transitively linked any more, thus the build fails with CCLD upowerd /usr/bin/ld.bfd.real: linux/.libs/libupshared.a(libupshared_la-up-device-idevice.o): undefined reference to symbol 'plist_dict_get_item' /usr/bin/ld.bfd.real: note: 'plist_dict_get_item' is defined in DSO /usr/lib64/libplist.so.1 so try adding it to the linker command line /usr/lib64/libplist.so.1: could not read symbols: Invalid operation
This commit is contained in:
parent
04dd349103
commit
d1e6e48ad3
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ if test x$with_backend = xlinux; then
|
|||
AC_ARG_WITH(idevice, AS_HELP_STRING([--without-idevice],[Build without libimobiledevice]),
|
||||
with_idevice=$withval,with_idevice=yes)
|
||||
AS_IF([test "x$with_idevice" != "xno"],
|
||||
[PKG_CHECK_MODULES(IDEVICE, libimobiledevice-1.0 >= 0.9.7, have_idevice=yes, have_idevice=no)],
|
||||
[PKG_CHECK_MODULES(IDEVICE, libimobiledevice-1.0 >= 0.9.7 libplist >= 0.12, have_idevice=yes, have_idevice=no)],
|
||||
[have_idevice=no])
|
||||
AS_IF([test "x$have_idevice" = "xyes"],
|
||||
[AC_DEFINE(HAVE_IDEVICE, 1, [Define to 1 if AFC is going to be built])])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue