| Index: ports/libx11/build.sh
|
| diff --git a/ports/libx11/build.sh b/ports/libx11/build.sh
|
| index 32d287387ce2dcab48b673c01cf17ac3543a80f0..b6853f4c93bf428f3ddbcdc2d936b8cf7a8f4e69 100644
|
| --- a/ports/libx11/build.sh
|
| +++ b/ports/libx11/build.sh
|
| @@ -6,3 +6,15 @@ if [ "${NACL_LIBC}" = "newlib" ]; then
|
| NACLPORTS_CFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat"
|
| EXTRA_CONFIGURE_ARGS+=" --enable-shared=no"
|
| fi
|
| +
|
| +InstallStep() {
|
| + DefaultInstallStep
|
| + if [ "${NACL_LIBC}" = "newlib" ]; then
|
| + if ! grep -Eq "lglibc-compat" \
|
| + ${INSTALL_DIR}/naclports-dummydir/lib/pkgconfig/x11.pc ; then
|
| + sed -i 's/-lX11/-lX11 -lglibc-compat/'\
|
| + ${INSTALL_DIR}/naclports-dummydir/lib/pkgconfig/x11.pc
|
| + fi
|
| + fi
|
| +}
|
| +
|
|
|