Gary V. Vaughan wrote: > > I notice that the latest sharutils relies on iconv.m4 and friends from > > gnulib to provide --with-libiconv-prefix and --with-libintl-prefix. > > But, these macros are assuming that you will link using libtool,.....
No, they don't. They define a variable for use with libtool, and another variable for use without libtool. See <http://www.gnu.org/software/hello/manual/gettext/AM_005fICONV.html> <http://www.gnu.org/software/hello/manual/gettext/AM_005fGNU_005fGETTEXT.html> How to reproduce a problem: On Cygwin 1. Install gettext with --prefix=/usr/local/cygwin 2. Configure sharutils with ./configure --prefix=/usr/local/cygwin \ CPPFLAGS="-I/usr/local/cygwin/include -Wall" \ LDFLAGS="-L/usr/local/cygwin/lib" 3. make ... gcc -g -O2 -L/usr/local/cygwin/lib -o shar.exe shar.o encode.o ../lib/libgnu.a -L/usr/local/cygwin/lib -lintl -liconv -R/usr/local/cygwin/lib ../lib/libgnu.a gcc: unrecognized option `-R/usr/local/cygwin/lib' The bug is that while sharutils does not use libtool, in src/Makefile.am it uses $(LTLIBINTL) when it should use $(LIBINTL). Bruno -- In memoriam Erich Knauf <http://en.wikipedia.org/wiki/Erich_Knauf>