Skip to content

Instantly share code, notes, and snippets.

View martell's full-sized avatar
🏠
Working from home

martell martell

🏠
Working from home
View GitHub Profile
@martell
martell / gist:8698631
Created January 29, 2014 22:35
ct-ng save steps :)
echo "CT_DEBUG_CT=y" >> ${CTNG_SAMPLE_CONFIG}
echo "CT_DEBUG_CT_SAVE_STEPS=y" >> ${CTNG_SAMPLE_CONFIG}
echo "CT_DEBUG_CT_SAVE_STEPS_GZIP=y" >> ${CTNG_SAMPLE_CONFIG}
# Build script for the gdb debug facility
# The version of ncurses to use. Yes, it's hard-coded.
# It's used only internally by crosstool-NG, and is
# not exposed outside, so we don't care about providing
# config options for this.
CT_DEBUG_GDB_NCURSES_VERSION="5.9"
# Ditto for the expat library
CT_DEBUG_GDB_EXPAT_VERSION="2.1.0"
@martell
martell / gist:8811201
Created February 4, 2014 20:00
PKGBUILD for ct-ng
# Maintainer: Martell Malone <martell malone at g mail dot com>
_realname=crosstool-ng
pkgname="${_realname}-git"
_ver_base=1.19
pkgver=1.19.248.3250492
pkgrel=1
pkgdesc="A cross-platform open-source toolchain system "
arch=('i686' 'x86_64')
url="http://www.crosstool-ng.org/"
@martell
martell / gist:8921579
Created February 10, 2014 18:36
Cocos2d-x 2.x Android Windows cmd script
@echo off
set APPNAME="carbon"
set NDK_ROOT="C:\android-ndk-r9b"
set buildexternalsfromsource=
set PARALLEL_BUILD_FLAG=
goto :getopts
@martell
martell / gist:11254074
Created April 24, 2014 13:10
nm libclinginterpreter
ASTDumper.o:
0000000000000000 b .bss
0000000000000000 d .data
0000000000000000 p .pdata
0000000000000000 r .rdata
0000000000000000 r .rdata$_ZTVN5cling9ASTDumperE
0000000000000000 r .rdata$zzz
0000000000000000 t .text
0000000000000000 r .xdata
This file has been truncated, but you can view the full file.
[INFO ] Performing some trivial sanity checks
[DEBUG] Testing '! ( -n )'
[DEBUG] Testing '! ( -n )'
[DEBUG] Testing '! ( -n )'
[DEBUG] Testing '! ( -n )'
[DEBUG] Testing '! ( -n )'
[DEBUG] Testing '! ( -n )'
[DEBUG] ==> Executing: 'mkdir' '-p' '/usr/home/Martell/PS3-packages/ps3-toolchain/src/ppu/.build'
[DEBUG] ==> Executing: 'rm' '-f' '/usr/home/Martell/PS3-packages/ps3-toolchain/src/ppu/.build/backtrace'
[DEBUG] ==> Executing: 'touch' '/usr/home/Martell/PS3-packages/ps3-toolchain/src/ppu/.build/foo'
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.64. Invocation command line was
$ /usr/home/Martell/PS3-packages/ps3-toolchain/src/ppu/.build/src/binutils-2.24/configure --build=x86_64-build_w64-mingw32 --host=x86_64-build_w64-mingw32 --target=powerpc64-ps3-elf --prefix=/ps3/powerpc64-ps3-elf --disable-werror --with-pkgversion=crosstool-NG hg+unknown-20140424.160728 --disable-multilib --disable-nls --with-float=hard --with-sysroot=/ps3/powerpc64-ps3-elf/powerpc64-ps3-elf/sysroot --enable-64-bit-bfd
## --------- ##
## Platform. ##
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.64. Invocation command line was
$ /usr/home/Martell/PS3-packages/ps3-toolchain/src/ppu/.build/src/binutils-2.24/ld/configure --cache-file=./config.cache --with-gnu-as --with-gnu-ld --with-system-zlib --prefix=/ps3/powerpc64-ps3-elf --disable-werror --with-pkgversion=crosstool-NG hg+unknown-20140424.160728 --disable-multilib --disable-nls --with-float=hard --with-sysroot=/ps3/powerpc64-ps3-elf/powerpc64-ps3-elf/sysroot --enable-64-bit-bfd --program-transform-name=s&^&powerpc64-ps3-elf-& --disable-option-checking --build=x86_64-build_w64-mingw32 --host=x86_64-build_w64-mingw32 --target=powerpc64-ps3-elf --srcdir=/usr/home/Martell/PS3-packages/ps3-toolchain/src/ppu/.build/src/binutils-2.24/ld
## --------- ##
## Platform. ##
This file has been truncated, but you can view the full file.
01c0bb90 b .bss
01c0b520 b .bss
01c081bc b .bss
01c093e0 b .bss
01c081c0 b .bss
01c0e0a4 b .bss
01c0e0ac b .bss
01c0e0ac b .bss
01c081c0 b .bss
01c0e0a4 b .bss
diff -Naur isl-0.12.2-orig/config.guess isl-0.12.2/config.guess
--- isl-0.12.2-orig/config.guess 2014-06-27 20:48:55.662843400 +0100
+++ isl-0.12.2/config.guess 2014-06-27 20:48:55.662843400 +0100
@@ -866,6 +866,9 @@
amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
echo x86_64-unknown-cygwin
exit ;;
+ amd64:MSYS*:*:* | x86_64:MSYS*:*:*)
+ echo x86_64-unknown-msys
+ exit ;;