8000 GitHub - briandoh81/nginx: A humble cross compilation of nginx-1.8.0 for QNX/x86 and Linux/arm · GitHub
[go: up one dir, main page]

Skip to content
briandoh81Public
forked from OBIGOGIT/nginx

About

A humble cross compilation of nginx-1.8.0 for QNX/x86 and Linux/arm

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Repository files navigation

nginx

A cross-compilation of nginx-1.8.0 for QNX 6.6 and Linux/arm

Prerequisite

  • QNX SDP 6.6
  • gcc-arm-linux-gnueabi or gcc-arm-linux-gnueabihf

Building for QNX

  1. Source qnx660-env.sh into your shell.

    $ source /qnx660-env.sh

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

for x86:

- --crossbuild=QNX:6.6.0:x86
- --with-cc="qcc -V4.7.3,gcc_ntox86"
- --with-ld-opt="-lsocket -llogin"

for arm:

- --crossbuild=QNX:6.6.0:arm
- --with-cc="qcc -V4.7.3,gcc_ntoarmv7le"
- --with-ld-opt="-lsocket -llogin"

For example (all of this needs to be typed in one line):

for x86:

$ ./configure --crossbuild=QNX:6.6.0:x86 --with-cc="qcc -V4.7.3,gcc_ntox86" --with-ld-opt="-lsocket -llogin"

for arm:

$ ./configure --crossbuild=QNX:6.6.0:arm --with-cc="qcc -V4.7.3,gcc_ntoarmv7le" --with-ld-opt="-lsocket -llogin"
  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

A humble cross compilation of nginx-1.8.0 for QNX/x86 and Linux/arm

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0