Skip to content

Instantly share code, notes, and snippets.

@marcelog
Created October 29, 2016 18:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcelog/e04f71d450696c90afdd07f085ee7432 to your computer and use it in GitHub Desktop.
Save marcelog/e04f71d450696c90afdd07f085ee7432 to your computer and use it in GitHub Desktop.
How to send specific linker options for nginx without using LDFLAGS
#!/bin/bash
./configure --with-ld-opt="-L/my/ssl/location"
@orip
Copy link

orip commented Nov 3, 2022

It may also be necessary to specify where to find the include files.
For example if we configured OpenSSL with --prefix=/opt/openssl --openssldir=/opt/openssl then we can configure nginx with

./configure --with-cc-opt=-I/opt/openssl/include --with-ld-opt=-L/opt/openssl/lib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment