summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Julien Lavergne2011-02-08 02:46:54 +0100
committerGravatar Martin Szulecki2011-02-08 21:14:37 +0100
commit4050f960a91375f427effad50b5f5f0070aadab2 (patch)
tree96cdd256f88951bfac0b99de9b74f43e8a42bfed
parent95e32e28c3e44c774c5da20fcdc371e1c314964a (diff)
downloadifuse-4050f960a91375f427effad50b5f5f0070aadab2.tar.gz
ifuse-4050f960a91375f427effad50b5f5f0070aadab2.tar.bz2
Fix linking with binutils-gold by directly linking with libplist
-rw-r--r--configure.ac1
-rw-r--r--src/Makefile.am6
2 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 53cf2ed..a01f665 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,6 +21,7 @@ libimobiledevice_VERSION=`$PKG_CONFIG --modversion "libimobiledevice-1.0" 2>&1`
PKG_CHECK_MODULES(libglib2, glib-2.0 >= 2.14.1)
PKG_CHECK_MODULES(libgthread2, gthread-2.0 >= 2.14.1)
PKG_CHECK_MODULES(libfuse, fuse >= 2.7.0)
+PKG_CHECK_MODULES(libplist, libplist)
# Checks for header files.
AC_HEADER_STDC
diff --git a/src/Makefile.am b/src/Makefile.am
index 8ea6824..4492ddd 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,8 @@
-AM_CFLAGS = $(libglib2_CFLAGS) $(libfuse_CFLAGS) $(libimobiledevice_CFLAGS) -g
-AM_LDFLAGS = $(libglib2_LIBS) $(libfuse_LIBS) $(libimobiledevice_LIBS)
+AM_CFLAGS = $(libglib2_CFLAGS) $(libfuse_CFLAGS) $(libimobiledevice_CFLAGS) $(libplist_CFLAGS) -g
+AM_LDFLAGS = $(libglib2_LIBS) $(libfuse_LIBS) $(libimobiledevice_LIBS) $(libplist_LIBS)
bin_PROGRAMS = ifuse
ifuse_SOURCES = ifuse.c
+
+ifuse_LDADD = $(AM_LDFLAGS)