We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40f487e commit 12d46c7Copy full SHA for 12d46c7
1 file changed
external_deps/build.sh
@@ -484,8 +484,16 @@ build_png() {
484
485
cd "${dir_name}"
486
487
- # The default -O2 is dropped when there's user-provided CFLAGS.
488
- cmake_build
+ local png_cmake_args=(-DPNG_SHARED=OFF -DPNG_STATIC=ON)
+
489
+ if [ "${LIBS_SHARED}" = 'ON' ]
490
+ then
491
+ png_cmake_args=(-DPNG_SHARED=ON -DPNG_STATIC=OFF)
492
+ fi
493
494
+ cmake_build \
495
+ -DPNG_EXECUTABLES=OFF \
496
+ "${png_cmake_args[@]}"
497
}
498
499
# Build JPEG
0 commit comments