Skip to content

Commit

Permalink
Disable usage of sys_siglist function to workaround issues on alpine
Browse files Browse the repository at this point in the history
Motivation:

When we try to use our static compiled version on alpine it fails due missing sys_siglist. We can workaround this by letting apr use its own implementation.

Modifications:

Use ac_cv_have_decl_sys_siglist=no when compiling APR.

Result:

netty-tcnative-boringssl-static should be useable on alpine. Fixes #853
  • Loading branch information
normanmaurer committed Feb 26, 2024
1 parent a923995 commit 3813a00
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -692,15 +692,18 @@
</then>
<else>
<exec executable="configure" failonerror="true" dir="${aprSourceDir}" resolveexecutable="true">
<arg line="--disable-shared --prefix=${aprHome} CFLAGS='-O3 -fno-omit-frame-pointer -fPIC' ${macOsxDeploymentTarget}" />
<!--
Disable the detection of sys_siglist and just use apr's own implementation to workaround problems when trying to use static jars on alpine linux
See https://github.com/netty/netty-tcnative/issues/853
-->
<arg line="--disable-shared --prefix=${aprHome} CFLAGS='-O3 -fno-omit-frame-pointer -fPIC' ac_cv_have_decl_sys_siglist=no ${macOsxDeploymentTarget}" />
</exec>
<exec executable="make" failonerror="true" dir="${aprSourceDir}" resolveexecutable="true" />
<exec executable="make" failonerror="true" dir="${aprSourceDir}" resolveexecutable="true">
<arg line="install" />
</exec>
</else>
</if>

</else>
</if>
</target>
Expand Down

0 comments on commit 3813a00

Please sign in to comment.