libiconv

libiconv/libiconv-1.14/src

$ make install

test `ls -ld . | sed -e 's/^d\(.........\).*/\1/'` = rwxrwxrwx || chmod 777 .

if [ ! -d /usr/local/bin ] ; then /bin/sh ../build-aux/mkinstalldirs /usr/local/bin ; fi

case "mingw32" in \

          hpux*) gcc  -g -O2 `if test -n ''; then  /usr/local/bin; fi` iconv.o ../srclib/libicrt.a -L/usr/local/lib -liconv -lintl iconv.res `if test -n ''; then echo " -Wl,+b -Wl,/usr/local/lib"; fi` -o iconv.exe;; \

          *) /bin/sh ../libtool --mode=link gcc  -g -O2 `if test -n ''; then  /usr/local/bin; fi` iconv.o ../srclib/libicrt.a /usr/local/lib/libiconv.la -lintl iconv.res -o iconv.exe;; \

        esac

libtool: link: cannot find the library `/home/keith/staged/mingw32/lib/libiconv.la' or unhandled argument `/home/keith/staged/mingw32/lib/libiconv.la'

make: *** [install] Error 1


modify the Makefile

install : all force

if [ ! -d $(DESTDIR)$(bindir) ] ; then $(mkinstalldirs) $(DESTDIR)$(bindir) ; fi

case "mingw32" in \

 *) $(CC) $(LDFLAGS) $(CFLAGS) $(iconv_LDFLAGS) iconv.o ../srclib/libicrt.a -L$(DESTDIR)$(libdir) -liconv -lintl $(OBJECTS_RES_yes) `if test -n '$(DESTDIR)'; then echo " -Wl,+b -Wl,$(libdir)"; fi` -o iconv$(EXEEXT);; \

 hpux*) $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) $(iconv_LDFLAGS) iconv.o ../srclib/libicrt.a $(DESTDIR)$(libdir)/libiconv.la -lintl $(OBJECTS_RES_yes) -o iconv$(EXEEXT);; \

esac

$(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) iconv$(EXEEXT) $(DESTDIR)$(bindir)/iconv$(EXEEXT)


-------------------------

when compile binutils-2.24


error:

mv -f .deps/obj-coff.Tpo .deps/obj-coff.Po

gcc -DHAVE_CONFIG_H -I.  -I. -I. -I../bfd -I./config -I./../include -I./.. -I./../bfd -DLOCALEDIR="\"/usr/local/share/locale\""  -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wno-format -Werror -g -O2 -D__USE_MINGW_ACCESS -MT atof-ieee.o -MD -MP -MF .deps/atof-ieee.Tpo -c -o atof-ieee.o `test -f 'config/atof-ieee.c' || echo './'`config/atof-ieee.c

mv -f .deps/atof-ieee.Tpo .deps/atof-ieee.Po

/bin/sh ./libtool --tag=CC   --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wno-format -Werror -g -O2 -D__USE_MINGW_ACCESS  -static-libstdc++ -static-libgcc -Wl,--stack,12582912 -o as-new.exe app.o as.o atof-generic.o compress-debug.o cond.o depend.o dwarf2dbg.o dw2gencfi.o ecoff.o ehopt.o expr.o flonum-copy.o flonum-konst.o flonum-mult.o frags.o hash.o input-file.o input-scrub.o listing.o literal.o macro.o messages.o output-file.o read.o remap.o sb.o stabs.o subsegs.o symbols.o write.o tc-i386.o obj-coff.o atof-ieee.o  ../opcodes/libopcodes.la ../bfd/libbfd.la ../libiberty/libiberty.a -lintl  -lz

libtool: link: cannot find the library `/home/keith/staged/mingw32/lib/libiconv.la' or unhandled argument `/home/keith/staged/mingw32/lib/libiconv.la'

make[4]: *** [as-new.exe] Error 1

make[4]: Leaving directory `/prj/mingw/binutils/binutils-2.24/gas'

make[3]: *** [all-recursive] Error 1

make[3]: Leaving directory `/prj/mingw/binutils/binutils-2.24/gas'

make[2]: *** [all] Error 2

make[2]: Leaving directory `/prj/mingw/binutils/binutils-2.24/gas'

make[1]: *** [all-gas] Error 2

make[1]: Leaving directory `/prj/mingw/binutils/binutils-2.24'

make: *** [all] Error 2


/prj/mingw/binutils/binutils-2.24


---------------------------

\MinGW\lib\libintl.la


# Libraries that this one depends upon.

# dependency_libs=' -L/mingw/lib /home/keith/staged/mingw32/lib/libiconv.la'

dependency_libs=' -L/mingw/lib'



你可能感兴趣的:(libiconv)