Skip to content

Instantly share code, notes, and snippets.

@RyanKung
Last active November 22, 2017 10:34
Show Gist options
  • Select an option

  • Save RyanKung/9c4a0b723965d4cda8cd6a6f567949ce to your computer and use it in GitHub Desktop.

Select an option

Save RyanKung/9c4a0b723965d4cda8cd6a6f567949ce to your computer and use it in GitHub Desktop.
Cross-compiling netcat for blackberry 10 (QNX)
#! /bin/sh
# 1. Download source file of netcat from http://netcat.sourceforge.net/ and unzip it.
# 2. Path to source, and run the build shell.
tmp_pwd=`pwd`
cd /Applications/Momentics.app && source bbndk-env_10_3_1_995.sh && cd $tmp_pwd
QoX_BINS="${QNX_HOST}/usr/bin"
./configure CC="${QNX_BINS}/qcc" CXX="${QNX_BINS}/qcc" \
LDFLAGS="-Vgcc_ntoarmv7le" RANLIB="ntoarmv7-ranlib" AR="ntoarmv7-ar" \
CFLAGS="-Vgcc_ntoarmv7le" \
OS=qnx6 --target=qnx6 \
--with-ssl=openssl
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment