From 571293e3f9ee45f37867578899c6a8a9cd35afd4 Mon Sep 17 00:00:00 2001 From: "Arnout Vandecappelle (Essensium/Mind)" Date: Sun, 5 Nov 2017 23:33:37 +0100 Subject: libparted/labels: link with libiconv if needed gpt.c uses iconv so it should link with it. Otherwise, on platforms where libiconv is a separate library, we get a link failure of parted: CCLD parted ../libparted/.libs/libparted.so: undefined reference to `libiconv' ../libparted/.libs/libparted.so: undefined reference to `libiconv_open' ../libparted/.libs/libparted.so: undefined reference to `libiconv_close' Since iconv functionality is needed unconditionally (not only when gettext is enabled), AM_ICONV needs to be added to configure.ac. --- libparted/labels/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libparted/labels') diff --git a/libparted/labels/Makefile.am b/libparted/labels/Makefile.am index 3327c8c..db612d1 100644 --- a/libparted/labels/Makefile.am +++ b/libparted/labels/Makefile.am @@ -36,7 +36,7 @@ liblabels_la_SOURCES = \ rdb.c \ sun.c -liblabels_la_LIBADD = $(OS_LIBS) $(INTLLIBS) +liblabels_la_LIBADD = $(OS_LIBS) $(INTLLIBS) $(LIBICONV) AM_CPPFLAGS = $(partedincludedir) $(INTLINCS) -- cgit v1.2.1