* [gentoo-commits] gentoo-x86 commit in games-emulation/zsnes/files: zsnes-1.51-cross-compile.patch
@ 2013-02-07 22:31 Mike Frysinger (vapier)
0 siblings, 0 replies; only message in thread
From: Mike Frysinger (vapier) @ 2013-02-07 22:31 UTC (permalink / raw
To: gentoo-commits
vapier 13/02/07 22:31:32
Added: zsnes-1.51-cross-compile.patch
Log:
Fix cross-compiling.
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
Revision Changes Path
1.1 games-emulation/zsnes/files/zsnes-1.51-cross-compile.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/zsnes/files/zsnes-1.51-cross-compile.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-emulation/zsnes/files/zsnes-1.51-cross-compile.patch?rev=1.1&content-type=text/plain
Index: zsnes-1.51-cross-compile.patch
===================================================================
--- a/src/acinclude.m4
+++ b/src/acinclude.m4
@@ -107,7 +107,7 @@ int main (int argc, char *argv[])
with_zlib=yes,
with_zlib=no,
[AC_MSG_RESULT(cross-compiling)
- with_zlib=""
+ with_zlib="cross"
AC_MSG_WARN(Assuming zlib is available)])
if test x$with_zlib != x; then
@@ -116,7 +116,7 @@ fi
if test x$with_zlib = xyes; then
ZLIB_VERSION=$(<conf.zlibtest)
ifelse([$2], , :, [$2])
-else
+elif test x$with_zlib != xcross; then
ZLIB_CFLAGS=""
ZLIB_LIBS=""
ZLIB_VERSION=""
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -103,8 +103,10 @@ main: makefile.dep $(Z_OBJS)
@ZC@ -o @ZSNESEXE@ $(Z_OBJS) @ZCFLAGS@ @LDFLAGS@
rm -f version.o
+BUILD_CXX ?= g++
+BUILD_CXXFLAGS ?= -O2 -pipe
$(PSR): parsegen.cpp
- @CXX@ @CXXFLAGS@ -o $@ $< -lz
+ $(BUILD_CXX) $(BUILD_CXXFLAGS) -o $@ $< -lz
TOOLSEXE=$(TOOL_D)/archopt $(TOOL_D)/cutrtype $(TOOL_D)/extraext\
$(TOOL_D)/macroll $(TOOL_D)/minwhite $(TOOL_D)/nreplace\
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-02-07 22:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-07 22:31 [gentoo-commits] gentoo-x86 commit in games-emulation/zsnes/files: zsnes-1.51-cross-compile.patch Mike Frysinger (vapier)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox