Skip to content
/ nginx Public
forked from nginx/nginx

Fork official read-only mirror on GitHub for cross-platform builds

Notifications You must be signed in to change notification settings

Arenoros/nginx

 
 

Repository files navigation

nginx

A cross-compilation of nginx. Added cross compilation for -- QNX 6.5.0(x86 | arm) -- Linux arm

Prerequisite

  • QNX SDP 6.x
  • gcc-arm-linux-gnueabi or gcc-arm-linux-gnueabihf

Building for QNX

  1. Run auto/configure with the following parameters (you can add more parameters as you need):

for x86:

- --crossbuild=QNX:6.5.0:x86
- --with-cc="qcc -V4.4.2,gcc_ntox86"
- --with-ld-opt="-lsocket"

for arm:

- --crossbuild=QNX:6.5.0:arm
- --with-cc="qcc -V4.4.2,gcc_ntoarmv7le"
- --with-ld-opt="-lsocket"
  1. Run make

    $ make

Building for Linux / arm

  1. Run configure with the following parameters (you can add more parameters as you need):

    • --crossbuild=Linux::arm
    • --with-cc="arm-linux-gnueabihf-gcc"
    • --with-ld-opt="-L/usr/arm-linux-gnueabihf/lib"
    • --with-cc-opt="-L/usr/arm-linux-gnueabihf/include"

For example (in case you installed arm-linux-gnueabihf): in case you installed arm-linux-gnueabihf

$ ./configure --crossbuild=Linux::arm --with-cc="arm-linux-gnueabihf-gcc" --with-ld-opt="-L/usr/arm-linux-gnueabihf/lib" --with-cc-opt="-L/usr/arm-linux-gnueabihf/include"

  1. Run make

    $ make

About

Fork official read-only mirror on GitHub for cross-platform builds

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 96.3%
  • Vim Script 2.4%
  • XS 0.5%
  • Makefile 0.2%
  • Roff 0.2%
  • Shell 0.1%
  • Other 0.3%