Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: ports/libxcb/build.sh

Issue 1260083004: Add needed functions to glibc-compat for pkg (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: fix wrong c++ lib Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ports/libx11/build.sh ('k') | ports/libxcb/nacl.patch » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_CPPFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat" 6 NACLPORTS_CPPFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat"
7 NACLPORTS_LDFLAGS+=" -lglibc-compat"
7 fi 8 fi
8 9
9 NACLPORTS_LDFLAGS+=" -lnacl_io" 10 InstallStep() {
11 DefaultInstallStep
12 if [ "${NACL_LIBC}" = "newlib" ]; then
13 if ! grep -Eq "lglibc-compat" \
14 ${INSTALL_DIR}/naclports-dummydir/lib/pkgconfig/xcb.pc ; then
15 sed -i 's/-lxcb/-lxcb -lglibc-compat/'\
16 ${INSTALL_DIR}/naclports-dummydir/lib/pkgconfig/xcb.pc
17 fi
18 fi
19 }
20
21 NACLPORTS_LDFLAGS+=" -lnacl_io -l${NACL_CXX_LIB}"
OLDNEW
« no previous file with comments | « ports/libx11/build.sh ('k') | ports/libxcb/nacl.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698