I tried to build chmlib package using pkgbuild system. It builds and installs, but the package is not configured by default to include basic conversion tools (like chm to html etc.). If configure is run with --enable-examples, chlib should produce those tools. However in such case the build fails (it can't link because of socket related symbols being not found).
I modified .pkgbuild.build.sh for chmlib to include -lsocket in LDFLAGS (as per README suggestion). This partially helped, but it still was missing inet_addr symbol: Undefined first referenced symbol in file inet_addr chm_http.o (symbol belongs to implicit dependency /lib/libnsl.so.1) ld: fatal: symbol referencing errors. No output written to .libs/chm_http How can .pkgbuild.build.sh be modified to solve it? Thanks, Hillel.
