Skip to content

Instantly share code, notes, and snippets.

@Paxa
Created February 13, 2014 04:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Paxa/8969625 to your computer and use it in GitHub Desktop.
Save Paxa/8969625 to your computer and use it in GitHub Desktop.
ruby for blackberry 10
#! /bin/sh
tmp_pwd=`pwd`
cd /Applications/Momentics.app && source bbndk-* && cd $tmp_pwd
echo $QNX_HOST
QNX_BINS="${QNX_HOST}/usr/bin"
#
CC="${QNX_BINS}/qcc -V4.6.3,gcc_ntoarmv7le "
CXX="${QNX_BINS}/qcc -V4.6.3,gcc_ntoarmv7le -E "
CPPFLAGS="-D__PLAYBOOK__ -D__QNXNTO__ "
CFLAGS="-Vgcc_ntoarmv7le -D__QNXNTO__ "
CFLAGS=" -g -fPIC -fstack-protector-strong -I${QNX_TARGET}/usr/include"
RANLIB="ntoarmv7-ranlib"
AR="ntoarmv7-ar"
LD="${QNX_HOST}/usr/bin/ntoarmv7-ld "
LDFLAGS="-L${QNX_TARGET}/armle-v7/usr/lib -L${QNX_TARGET}/armle-v7/lib -shared"
export CC CXX CPPFLAGS CFLAGS RANLIB AR LD LDFLAGS
#LDFLAGS="-L/Users/pavel/Downloads/libbsd-0.6.0/build -lsetmode -lxml2"
./configure OS=qnx6 --target=armv7 \
--with-ssl=openssl --host=arm-unknown-nto-qnx8.0.0eabi
#--without-ssl --disable-iri --disable-debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment