Skip to content

Commit

Permalink
flags
Browse files Browse the repository at this point in the history
  • Loading branch information
normanmaurer committed Oct 31, 2024
1 parent 6b3ab18 commit dd66064
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions boringssl-static/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -574,13 +574,17 @@
<target>
<!-- Add the ant tasks from ant-contrib -->
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
<echo message="Setup flags to use during linking" />

<!-- If we compile on linux we need to adjust the ldflags to correct link libstdc++ -->
<if>
<equals arg1="${os.detected.name}" arg2="linux" />
<then>
<property name="ldflags" value="-L${boringsslHome}/ssl -L${boringsslHome}/crypto -lssl -lcrypto -static-libstdc++ -l:libstdc++.a" />
<property name="hawtjniLdflags" value="-L${boringsslHome}/ssl -L${boringsslHome}/crypto -lssl -lcrypto -static-libstdc++ -l:libstdc++.a" />
</then>
<else>
<property name="hawtjniLdflags" value="${ldflags}" />
</else>
</if>
</target>
</configuration>
Expand Down Expand Up @@ -681,7 +685,7 @@
<configureArg>${macOsxDeploymentTarget}</configureArg>
<configureArg>CFLAGS=${cflags}</configureArg>
<configureArg>CPPFLAGS=${cppflags}</configureArg>
<configureArg>LDFLAGS=${ldflags}</configureArg>
<configureArg>LDFLAGS=${hawtjniLdflags}</configureArg>
</configureArgs>
</configuration>
</execution>
Expand Down

0 comments on commit dd66064

Please sign in to comment.