| OLD | NEW |
| 1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 EnableGlibcCompat | 5 EnableGlibcCompat |
| 6 | 6 |
| 7 NACLPORTS_LIBS+=" -lnacl_io -l${NACL_CXX_LIB}" | |
| 8 | |
| 9 InstallStep() { | 7 InstallStep() { |
| 10 DefaultInstallStep | 8 DefaultInstallStep |
| 11 if [ "${NACL_LIBC}" = "newlib" ]; then | 9 if [ "${NACL_LIBC}" = "newlib" ]; then |
| 12 local pkgconfig_file=${INSTALL_DIR}/naclports-dummydir/lib/pkgconfig/xcb.pc | 10 local pkgconfig_file=${INSTALL_DIR}/naclports-dummydir/lib/pkgconfig/xcb.pc |
| 13 if ! grep -Eq "lglibc-compat" $pkgconfig_file; then | 11 if ! grep -Eq "lglibc-compat" $pkgconfig_file; then |
| 14 sed -i.bak 's/-lxcb/-lxcb -lglibc-compat/' $pkgconfig_file | 12 sed -i.bak 's/-lxcb/-lxcb -lglibc-compat/' $pkgconfig_file |
| 15 fi | 13 fi |
| 16 fi | 14 fi |
| 17 } | 15 } |
| OLD | NEW |