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

Unified Diff: examples/systems/dosbox-0.74/nacl-dosbox-0.74.sh

Issue 11885025: Allow re-targeting of naclports install (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: examples/systems/dosbox-0.74/nacl-dosbox-0.74.sh
diff --git a/examples/systems/dosbox-0.74/nacl-dosbox-0.74.sh b/examples/systems/dosbox-0.74/nacl-dosbox-0.74.sh
index b9738fa1b50df3b12a3c09e4cd576d2713e356a7..a4f8add319631081324cd2e33ddcfe4fce526be9 100755
--- a/examples/systems/dosbox-0.74/nacl-dosbox-0.74.sh
+++ b/examples/systems/dosbox-0.74/nacl-dosbox-0.74.sh
@@ -27,30 +27,30 @@ CustomConfigureStep() {
export CC=${NACLCC}
export CXX=${NACLCXX}
# NOTE: non-standard flag NACL_LDFLAGS because of some more hacking below
- export CXXFLAGS="-O2 -g -I${NACL_SDK_ROOT}/include"
- export NACL_LDFLAGS=""
+ export CXXFLAGS="${NACLPORTS_CFLAGS} -O2 -g -I${NACL_SDK_ROOT}/include"
+ export NACL_LDFLAGS="${NACLPORTS_LDFLAGS}"
if [ ${NACL_ARCH} = "pnacl" ] ; then
- export CXXFLAGS="-O3 -g"
- export NACL_LDFLAGS="-O0 -static"
+ export CXXFLAGS="${NACLPORTS_CFLAGS} -O3 -g"
+ export NACL_LDFLAGS="${NACL_LDFLAGS} -O0 -static"
fi
export AR=${NACLAR}
export RANLIB=${NACLRANLIB}
export STRIP=${NACLSTRIP}
- export PKG_CONFIG_PATH=${NACL_SDK_USR_LIB}/pkgconfig
- export PKG_CONFIG_LIBDIR=${NACL_SDK_USR_LIB}
+ export PKG_CONFIG_PATH=${NACLPORTS_LIBDIR}/pkgconfig
+ export PKG_CONFIG_LIBDIR=${NACLPORTS_LIBDIR}
- export LIBS="-L${NACL_SDK_USR_LIB} \
+ export LIBS="-L${NACLPORTS_LIBDIR} \
-lm \
-lpng \
-lz"
CONFIG_FLAGS="--host=${NACL_ARCH}-pc-nacl \
- --prefix=${NACL_SDK_USR} \
- --exec-prefix=${NACL_SDK_USR} \
- --libdir=${NACL_SDK_USR_LIB} \
- --oldincludedir=${NACL_SDK_USR_INCLUDE} \
- --with-sdl-prefix=${NACL_SDK_USR} \
- --with-sdl-exec-prefix=${NACL_SDK_USR}"
+ --prefix=${NACLPORTS_PREFIX} \
+ --exec-prefix=${NACLPORTS_PREFIX} \
+ --libdir=${NACLPORTS_LIBDIR} \
+ --oldincludedir=${NACLPORTS_INCLUDE} \
+ --with-sdl-prefix=${NACLPORTS_PREFIX} \
+ --with-sdl-exec-prefix=${NACLPORTS_PREFIX}"
ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
./autogen.sh

Powered by Google App Engine
This is Rietveld 408576698