webkit2gtk: fix ppc build

Seems like gold is buggy with this one and we need to add
libatomic linkage as well.

[ci skip]
This commit is contained in:
q66 2019-08-12 23:51:56 +02:00 committed by Johannes
parent 8012a2cb9f
commit 0def93b42b

View file

@ -44,7 +44,7 @@ desc_option_jit="Enable JustInTime JS support"
desc_option_sampling_profiler="Toggle sampling profiler support (disabled on musl)"
case "$XBPS_TARGET_MACHINE" in
aarch64*|arm*) configure_args+=" -DUSE_LD_GOLD=0";;
aarch64*|arm*|ppc|ppc-musl) configure_args+=" -DUSE_LD_GOLD=0";;
esac
# JIT conflicts with sampling_profiler
@ -56,7 +56,7 @@ esac
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
armv[56]*) # Add -latomic to the targets
armv[56]*|ppc|ppc-musl) # Add -latomic to the targets
find -name "CMakeLists.txt" -exec sed -i "{}" \
-e "/target_link_libraries/s/)/ atomic)/" \;
;;