Last active
November 22, 2017 10:34
-
-
Save RyanKung/9c4a0b723965d4cda8cd6a6f567949ce to your computer and use it in GitHub Desktop.
Cross-compiling netcat for blackberry 10 (QNX)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /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