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

Side by Side Diff: ports/sdl-tests/nacl.patch

Issue 1804293003: Add support for new pnacl native toolchain driver (Closed) Base URL: https://chromium.googlesource.com/webports.git@master
Patch Set: Fix according to Brad's comments Created 4 years, 7 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
OLDNEW
1 diff --git a/test/configure.in b/test/configure.in 1 diff --git a/test/configure.in b/test/configure.in
2 --- a/test/configure.in 2 --- a/test/configure.in
3 +++ b/test/configure.in 3 +++ b/test/configure.in
4 @@ -50,6 +50,18 @@ case "$host" in 4 @@ -50,6 +50,18 @@ case "$host" in
5 SYS_GL_LIBS="-lOSMesa" 5 SYS_GL_LIBS="-lOSMesa"
6 fi 6 fi
7 ;; 7 ;;
8 + *-*-nacl*) 8 + *-*-nacl*)
9 + case "$CC" in 9 + case "$CC" in
10 + */pnacl*) 10 + */pnacl* | */le32-nacl*)
11 + EXE=".pexe" 11 + EXE=".pexe"
12 + ;; 12 + ;;
13 + *) 13 + *)
14 + EXE=".nexe" 14 + EXE=".nexe"
15 + ;; 15 + ;;
16 + esac 16 + esac
17 + MATHLIB="-lm" 17 + MATHLIB="-lm"
18 + SYS_GL_LIBS="" 18 + SYS_GL_LIBS=""
19 + ;; 19 + ;;
20 *) 20 *)
21 EXE="" 21 EXE=""
22 MATHLIB="-lm" 22 MATHLIB="-lm"
23 @@ -68,6 +80,12 @@ AM_PATH_SDL($SDL_VERSION, 23 @@ -68,6 +80,12 @@ AM_PATH_SDL($SDL_VERSION,
24 CFLAGS="$CFLAGS $SDL_CFLAGS" 24 CFLAGS="$CFLAGS $SDL_CFLAGS"
25 LIBS="$LIBS $SDL_LIBS" 25 LIBS="$LIBS $SDL_LIBS"
26 26
27 +case "$host" in 27 +case "$host" in
28 + *-*-nacl*) 28 + *-*-nacl*)
29 + LIBS="$LIBS -lnacl_io -l${NACL_CXX_LIB}" 29 + LIBS="$LIBS -lnacl_io -l${NACL_CXX_LIB}"
30 + ;; 30 + ;;
31 +esac 31 +esac
32 + 32 +
33 dnl Check for X11 path, needed for OpenGL on some systems 33 dnl Check for X11 path, needed for OpenGL on some systems
34 AC_PATH_X 34 AC_PATH_X
35 if test x$have_x = xyes; then 35 if test x$have_x = xyes; then
OLDNEW
« make_all.sh ('K') | « ports/sdl-tests/build.sh ('k') | ports/sdl2-tests/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698