| Index: ports/libxcb/build.sh
|
| diff --git a/ports/libxcb/build.sh b/ports/libxcb/build.sh
|
| index e46ca0cd84048cdc7d8cbc3048408a9bf5b83859..0cc8659359f3e9fc28156547ed6e35624a128095 100644
|
| --- a/ports/libxcb/build.sh
|
| +++ b/ports/libxcb/build.sh
|
| @@ -4,6 +4,18 @@
|
|
|
| if [ "${NACL_LIBC}" = "newlib" ]; then
|
| NACLPORTS_CPPFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat"
|
| + NACLPORTS_LDFLAGS+=" -lglibc-compat"
|
| fi
|
|
|
| -NACLPORTS_LDFLAGS+=" -lnacl_io"
|
| +InstallStep() {
|
| + DefaultInstallStep
|
| + if [ "${NACL_LIBC}" = "newlib" ]; then
|
| + if ! grep -Eq "lglibc-compat" \
|
| + ${INSTALL_DIR}/naclports-dummydir/lib/pkgconfig/xcb.pc ; then
|
| + sed -i 's/-lxcb/-lxcb -lglibc-compat/'\
|
| + ${INSTALL_DIR}/naclports-dummydir/lib/pkgconfig/xcb.pc
|
| + fi
|
| + fi
|
| +}
|
| +
|
| +NACLPORTS_LDFLAGS+=" -lnacl_io -l${NACL_CXX_LIB}"
|
|
|