diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-02-07 22:31:38 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-02-07 22:31:38 +0000 |
commit | 649821b196d8b8c89a131b4fc245b671379c15d8 (patch) | |
tree | f7bda7f105f8f4fa2ec761fe5fa8f55b9ca1cd63 /games-emulation/zsnes/files | |
parent | Move Creative Commons licenses to shorter names. (diff) | |
download | historical-649821b196d8b8c89a131b4fc245b671379c15d8.tar.gz historical-649821b196d8b8c89a131b4fc245b671379c15d8.tar.bz2 historical-649821b196d8b8c89a131b4fc245b671379c15d8.zip |
Fix cross-compiling.
Package-Manager: portage-2.2.0_alpha161/cvs/Linux x86_64
Manifest-Sign-Key: 0xFB7C4156
Diffstat (limited to 'games-emulation/zsnes/files')
-rw-r--r-- | games-emulation/zsnes/files/zsnes-1.51-cross-compile.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/games-emulation/zsnes/files/zsnes-1.51-cross-compile.patch b/games-emulation/zsnes/files/zsnes-1.51-cross-compile.patch new file mode 100644 index 000000000000..5823c6aa6ade --- /dev/null +++ b/games-emulation/zsnes/files/zsnes-1.51-cross-compile.patch @@ -0,0 +1,34 @@ +--- 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\ |