FreeBSD compilation
Hey,
I tried to contact people on IRC (libera/#xiph) but haven't gotten a timely response so I'm creating an issue here.
I'm trying to compile ezstream for freebsd and after having problems with it, found a way to compile it. I'm not a C coder, nor do I know the toolchain around the code so some advice would be nice here.
The problem was, the code failed to link with iconv because the -liconv
was missing from src/Makefile
. I managed to add it to src/Makefile.am
so it compiled after a configure
run. Here's a diff for it:
diff --git a/src/Makefile.am b/src/Makefile.am
index 66f4361..630a944 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -41,7 +41,7 @@ libezstream_la_SOURCES = \
libezstream_la_DEPENDENCIES = \
$(builddir)/libcommon.la \
$(top_builddir)/compat/libcompat.la
-libezstream_la_LIBADD = @EZ_LIBS@ \
+libezstream_la_LIBADD = @EZ_LIBS@ -liconv \
$(libezstream_la_DEPENDENCIES)
bin_SCRIPTS = ezstream-file.sh
@@ -55,7 +55,7 @@ ezstream_cfgmigrate_SOURCES = ezstream-cfgmigrate.c ezconfig0.c
ezstream_cfgmigrate_DEPENDENCIES = \
$(builddir)/libcommon.la \
$(top_builddir)/compat/libcompat.la
-ezstream_cfgmigrate_LDADD = @EZ_LIBS@ \
+ezstream_cfgmigrate_LDADD = @EZ_LIBS@ -liconv \
$(ezstream_cfgmigrate_DEPENDENCIES)
AM_CPPFLAGS = @EZ_CPPFLAGS@ -I$(top_srcdir)/compat
I tried to track down the EZ_LIBS
in configure but got lost and I have no idea as to how to pass it from there so configure would put in src/Makefile, instead of me having to modify src/Makefile.am
.
Any help is appreciated.