Skip to content

Commit

Permalink
Attempt to statically link to bz2 and z on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriks73 committed Oct 28, 2023
1 parent cd8fbd7 commit 9cf9e01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@
<headers.os>linux</headers.os>
<compiler.startoptions>${cflags} ${gcc.code} -fPIC -Wall -x c -Wno-multichar -D_JNI_IMPLEMENTATION_ -O3</compiler.startoptions>
<linker.startoptions>-v ${gcc.code} -shared -s</linker.startoptions>
<linker.endoptions>-L${project.build.directory}/lib -lavformat -lavcodec -lavutil -lswresample -lz -lbz2</linker.endoptions>
<linker.endoptions>-L${project.build.directory}/lib -lavformat -lavcodec -lavutil -lswresample -l:libz.a -l:libbz2.a</linker.endoptions>
</properties>
</profile>

Expand All @@ -610,7 +610,7 @@
<headers.os>linux</headers.os>
<compiler.startoptions>${cflags} -fPIC -Wall -x c -Wno-multichar -D_JNI_IMPLEMENTATION_ -O3</compiler.startoptions>
<linker.startoptions>-v -shared -s</linker.startoptions>
<linker.endoptions>-L${project.build.directory}/lib -lavformat -lavcodec -lavutil -lswresample -lz -lbz2</linker.endoptions>
<linker.endoptions>-L${project.build.directory}/lib -lavformat -lavcodec -lavutil -lswresample -l:libz.a -l:libbz2.a</linker.endoptions>
</properties>
</profile>

Expand Down

0 comments on commit 9cf9e01

Please sign in to comment.