Commit 57d1570
Ira W. Snyder
Fix static and dynamic mode compilation with nginx >= 1.9.11
The commit 42eeda5 "Dynamic Module support." does not compile in
the static module mode on nginx >= 1.9.11. It gives the compiler error
message:
objs/ngx_modules.o:(.data+0x320): undefined reference to
`ngx_http_aws_auth'
collect2: error: ld returned 1 exit status
make[1]: *** [objs/nginx] Error 1
make[1]: Leaving directory `/nginx-1.9.11'
make: *** [install] Error 2
It is possible to fix static mode, by changing ngx_module_name to
"ngx_http_aws_auth_module", however, this breaks dynamic mode instead.
To make both modes work correctly, the name of the C source code file is
required to match the module struct name. And now both modes work
correctly.
Tested on nginx-1.9.11 and nginx-1.9.12.1 parent 396137c commit 57d1570
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
File renamed without changes.
0 commit comments