Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 169508 Details for
Bug 215776
[new version] games-simulation/openttd-0.6.3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
libiconv.patch
libiconv.patch (text/plain), 1.43 KB, created by
Tomáš Chvátal (RETIRED)
on 2008-10-22 22:05:35 UTC
(
hide
)
Description:
libiconv.patch
Filename:
MIME Type:
Creator:
Tomáš Chvátal (RETIRED)
Created:
2008-10-22 22:05:35 UTC
Size:
1.43 KB
patch
obsolete
>Index: config.lib >=================================================================== >--- config.lib (revision 14474) >+++ config.lib (working copy) >@@ -1225,10 +1225,12 @@ > > if [ "$with_iconv" != "0" ]; then > CFLAGS="$CFLAGS -DWITH_ICONV" >- LIBS="$LIBS -liconv" >- if [ "$with_iconv" != "2" ]; then >- CFLAGS="$CFLAGS -I$with_iconv/include" >- LIBS="$LIBS -L$with_iconv/lib" >+ if [ "$link_to_iconv" = "yes" ]; then >+ LIBS="$LIBS -liconv" >+ if [ "$with_iconv" != "2" ]; then >+ CFLAGS="$CFLAGS -I$with_iconv/include" >+ LIBS="$LIBS -L$with_iconv/lib" >+ fi > fi > > if [ "$have_broken_iconv" != "no" ]; then >@@ -2161,6 +2163,27 @@ > log 2 " exit code $ret" > if [ "$ret" = "0" ]; then have_broken_iconv="no"; else have_broken_iconv="yes"; fi > log 1 "checking if iconv has non-const inbuf... $have_broken_iconv" >+ >+ cat > tmp.iconv.cpp << EOF >+#include "src/stdafx.h" >+#include <iconv.h> >+int main() { >+ static char buf[1024]; >+ iconv_t convd = 0; >+ char *inbuf = ""; >+ char *outbuf = buf; >+ size_t outlen = 1023; >+ size_t inlen = 0; >+ return iconv(convd, &inbuf, &inlen, &outbuf, &outlen); >+} >+EOF >+ execute="$cxx_host $CFLAGS tmp.iconv.cpp -o tmp.iconv -DTESTING 2>&1" >+ eval $execute >&/dev/null >+ ret=$? >+ log 2 "executing $execute" >+ log 2 " exit code $ret" >+ if [ "$ret" = "0" ]; then link_to_iconv="no"; else link_to_iconv="yes"; fi >+ log 1 "checking whether to link to iconv... $link_to_iconv" > rm -f tmp.iconv tmp.iconv.cpp > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 215776
:
148128
|
152417
|
162530
|
162532
|
166969
|
168660
|
168662
|
168664
|
168822
|
169074
|
169078
|
169122
|
169474
|
169482
|
169504
| 169508