Skip to content

Commit

Permalink
Fix native-build/target/lib wanted but build in native-build/target/l…
Browse files Browse the repository at this point in the history
…ib64

Motivation:

On openSUSE (probably more), 64 bit builds use lib64, e.g. /usr/lib64, and
configure picks this up and builds the native library in
native-build/target/lib64 where maven is not looking.

Modifications:

Explicitly specify --libdir=${project.build.directory}/native-build/target/lib
during configuration.

Result:

Maven uses the correct lib directory.
  • Loading branch information
NicoK committed Jul 29, 2019
1 parent 613aafe commit 04cb735
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions transport-native-epoll/pom.xml
Expand Up @@ -155,6 +155,7 @@
<configureArgs>
<arg>${jni.compiler.args.ldflags}</arg>
<arg>${jni.compiler.args.cflags}</arg>
<configureArg>--libdir=${project.build.directory}/native-build/target/lib</configureArg>
</configureArgs>
</configuration>
<goals>
Expand Down
1 change: 1 addition & 0 deletions transport-native-kqueue/pom.xml
Expand Up @@ -84,6 +84,7 @@
explicitly set the target platform. Otherwise we may get fatal link errors due to weakly linked
methods which are not expected to be present on MacOS (e.g. accept4). -->
<arg>MACOSX_DEPLOYMENT_TARGET=10.6</arg>
<configureArg>--libdir=${project.build.directory}/native-build/target/lib</configureArg>
</configureArgs>
</configuration>
<goals>
Expand Down

0 comments on commit 04cb735

Please sign in to comment.