Build libparserutils (and NetSurf) against libiconv instead of newlib's iconv.

This fixes the bug with lpu's iconv filter causing freezing on OS4 NetSurf.  With an
appropriate font (eg. Bitstream Cyberbit) Japanese characters will now display.
Test websites work, but proper Japanese websites cause an assert which may be caused
by amiga/font.c incorrect text size calculations.

svn path=/trunk/netsurf/; revision=10546
This commit is contained in:
Chris Young 2010-05-03 17:58:17 +00:00
parent 17d76ee478
commit 048249f71d
4 changed files with 12 additions and 6 deletions

View File

@ -69,12 +69,15 @@
1> gmake install 1> gmake install
| Note: We advise enabling ivonv() support in libparserutils, which vastly | Note: We advise enabling iconv() support in libparserutils, which vastly
| increases the number of supported character sets. To do this, | increases the number of supported character sets. To do this,
| create a file called Makefile.config.override in the libparserutils | create a file called Makefile.config.override in the libparserutils
| directory, containing the following line: | directory, containing the following lines:
| |
| CFLAGS += -DWITH_ICONV_FILTER | CFLAGS += -DWITH_ICONV_FILTER
| LDFLAGS += -liconv
|
| This requires libiconv as iconv support in newlib.library is buggy.
| |
| For more information, consult the libparserutils README file. | For more information, consult the libparserutils README file.

View File

@ -517,14 +517,13 @@ ifeq ($(TARGET),amiga)
$(eval $(call feature_enabled,MNG,,-llcms -ljpeg,PNG/JNG/MNG (libmng))) $(eval $(call feature_enabled,MNG,,-llcms -ljpeg,PNG/JNG/MNG (libmng)))
CFLAGS += -D__USE_INLINE__ -std=c99 -I . -I /SDK/local/common/include/libpng12 -Dnsamiga CFLAGS += -D__USE_INLINE__ -std=c99 -I . -I /SDK/local/common/include/libpng12 -Dnsamiga
LDFLAGS += -lxml2 -ldl -lcurl -lpthread -lregex -lauto LDFLAGS += -lxml2 -ldl -lcurl -lpthread -lregex -liconv -lauto
LDFLAGS += -lssl -lcrypto -lhubbub -lcss -lparserutils -lwapcaplet LDFLAGS += -lssl -lcrypto -lhubbub -lcss -lparserutils -lwapcaplet
ifeq ($(NETSURF_AMIGA_USE_CAIRO),YES) ifeq ($(NETSURF_AMIGA_USE_CAIRO),YES)
CFLAGS += -DNS_AMIGA_CAIRO -I /SDK/local/common/include/cairo CFLAGS += -DNS_AMIGA_CAIRO -I /SDK/local/common/include/cairo
LDFLAGS += -use-dynld -lcairo -lpixman-1 -lfreetype -lfontconfig -lpng -lexpat LDFLAGS += -use-dynld -lcairo -lpixman-1 -lfreetype -lfontconfig -lpng -lexpat
SUBTARGET := -cairo SUBTARGET := -cairo
EXETARGET := NetSurf_Cairo
endif endif
endif endif

View File

@ -189,6 +189,10 @@ endif
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
ifeq ($(TARGET),amiga) ifeq ($(TARGET),amiga)
# Force using glibc internal iconv implementation instead of external libiconv
# Valid options: YES, NO
NETSURF_USE_LIBICONV_PLUG := NO
# Enable NetSurf's use of librosprite for displaying RISC OS Sprites # Enable NetSurf's use of librosprite for displaying RISC OS Sprites
# Valid options: YES, NO, AUTO # Valid options: YES, NO, AUTO
NETSURF_USE_ROSPRITE := YES NETSURF_USE_ROSPRITE := YES

View File

@ -13,13 +13,13 @@ delete ram:netsurf/resources/options
copy resources/Pointers/~(.svn) ram:NetSurf/Resources/Pointers copy resources/Pointers/~(.svn) ram:NetSurf/Resources/Pointers
copy (COPYING|ChangeLog) ram:NetSurf/ copy (COPYING|ChangeLog) ram:NetSurf/
copy NetSurf ram:NetSurf/NetSurf copy NetSurf ram:NetSurf/NetSurf
copy NetSurf_Cairo ram:NetSurf/NetSurf_Cairo copy NetSurf-Cairo ram:NetSurf/NetSurf-Cairo
copy amiga/dist/AutoInstall ram: copy amiga/dist/AutoInstall ram:
copy amiga/dist/~(.svn|AutoInstall) ram:NetSurf/ copy amiga/dist/~(.svn|AutoInstall) ram:NetSurf/
copy amiga/pkg/fitr ram:NetSurf/ copy amiga/pkg/fitr ram:NetSurf/
makedir ram:NetSurf/Rexx makedir ram:NetSurf/Rexx
copy amiga/dist/Rexx/~(.svn) ram:NetSurf/Rexx/ COM copy amiga/dist/Rexx/~(.svn) ram:NetSurf/Rexx/ COM
makedir ram:NetSurf/SObjs makedir ram:NetSurf/SObjs
copy sobjs:libjpeg.so sobjs:libhubbub.so.0 sobjs:libhpdf-2.2.0.so.0.0 sobjs:libmng.so.1 sobjs:liblcms.so sobjs:libxml2.so sobjs:libparserutils.so.0 sobjs:libnsgif.so.0 sobjs:libnsbmp.so.0 sobjs:libcss.so.0 sobjs:libwapcaplet.so.0 sobjs:libcurl.so sobjs:libsvgtiny.so.0 sobjs:libz.so.1.2.5 ram:NetSurf/SObjs clone copy sobjs:libjpeg.so sobjs:libhubbub.so.0 sobjs:libhpdf-2.2.0.so.0.0 sobjs:libmng.so.1 sobjs:liblcms.so sobjs:libxml2.so sobjs:libparserutils.so.0 sobjs:libnsgif.so.0 sobjs:libnsbmp.so.0 sobjs:libcss.so.0 sobjs:libwapcaplet.so.0 sobjs:libcurl.so sobjs:libsvgtiny.so.0 sobjs:libz.so.1.2.5 sobjs:libiconv.so ram:NetSurf/SObjs clone
;sobjs:libssl-0.9.8.so sobjs:libexpat.so sobjs:libpng14.so.14 ;sobjs:libssl-0.9.8.so sobjs:libexpat.so sobjs:libpng14.so.14
;sobjs:libgcc.so sobjs:libc.so sobjs:libpthread.so ;sobjs:libgcc.so sobjs:libc.so sobjs:libpthread.so