Skip to content

Commit be37954

Browse files
committed
Disable usage of sys_siglist function to workaround issues on alpine
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.
1 parent a923995 commit be37954

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pom.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,15 +692,18 @@
692692
</then>
693693
<else>
694694
<exec executable="configure" failonerror="true" dir="${aprSourceDir}" resolveexecutable="true">
695-
<arg line="--disable-shared --prefix=${aprHome} CFLAGS='-O3 -fno-omit-frame-pointer -fPIC' ${macOsxDeploymentTarget}" />
695+
<!--
696+
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
697+
See https://github.com/netty/netty-tcnative/issues/853
698+
-->
699+
<arg line="--disable-shared --prefix=${aprHome} CFLAGS='-O3 -fno-omit-frame-pointer -fPIC' ac_cv_have_decl_sys_siglist=no ${macOsxDeploymentTarget}" />
696700
</exec>
697701
<exec executable="make" failonerror="true" dir="${aprSourceDir}" resolveexecutable="true" />
698702
<exec executable="make" failonerror="true" dir="${aprSourceDir}" resolveexecutable="true">
699703
<arg line="install" />
700704
</exec>
701705
</else>
702706
</if>
703-
704707
</else>
705708
</if>
706709
</target>

0 commit comments

Comments
 (0)