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 if [ "${NACL_LIBC}" = "newlib" ]; then | 5 if [ "${NACL_LIBC}" = "newlib" ]; then |
6 NACLPORTS_CFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat" | 6 NACLPORTS_CFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat" |
7 EXTRA_CONFIGURE_ARGS+=" --enable-shared=no" | 7 EXTRA_CONFIGURE_ARGS+=" --enable-shared=no" |
8 fi | 8 fi |
| 9 |
| 10 InstallStep() { |
| 11 DefaultInstallStep |
| 12 if [ "${NACL_LIBC}" = "newlib" ]; then |
| 13 if ! grep -Eq "lglibc-compat" \ |
| 14 ${INSTALL_DIR}/naclports-dummydir/lib/pkgconfig/x11.pc ; then |
| 15 sed -i 's/-lX11/-lX11 -lglibc-compat/'\ |
| 16 ${INSTALL_DIR}/naclports-dummydir/lib/pkgconfig/x11.pc |
| 17 fi |
| 18 fi |
| 19 } |
| 20 |
OLD | NEW |