Skip to content

Commit

Permalink
Fix link ordering
Browse files Browse the repository at this point in the history
Shared libraries should come after the object files that use them. The
old ordering worked on Arch linux but doesn't work on Ubuntu.
  • Loading branch information
rinon committed Sep 27, 2023
1 parent 336207c commit 2e594fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion external/nginx/auto/make
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ IA2_PREREWRITER_LDFLAGS = \\
-Wl,--wrap=pthread_create

IA2_LDFLAGS = \\
\$(IA2_CALLGATES) \\
-pthread \\
-Wl,--wrap=main \\
-Wl,-z,now \\
Expand Down Expand Up @@ -87,6 +86,8 @@ IA2_MODULE_LDFLAGS = \\

END

CORE_LIBS="$CORE_LIBS \$(IA2_CALLGATES)"

if test -n "$NGX_PERL_CFLAGS"; then
echo NGX_PERL_CFLAGS = $NGX_PERL_CFLAGS >> $NGX_MAKEFILE
echo NGX_PM_CFLAGS = $NGX_PM_CFLAGS >> $NGX_MAKEFILE
Expand Down

0 comments on commit 2e594fd

Please sign in to comment.