From a813dc10a6ec55876358d1e10355e9ccd9856d23 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Sat, 8 Oct 2022 14:10:48 +0200 Subject: [PATCH] Carla: fix armv6* build --- srcpkgs/Carla/patches/fix-armv6l-build.patch | 13 +++++++++++++ srcpkgs/Carla/template | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 srcpkgs/Carla/patches/fix-armv6l-build.patch diff --git a/srcpkgs/Carla/patches/fix-armv6l-build.patch b/srcpkgs/Carla/patches/fix-armv6l-build.patch new file mode 100644 index 00000000000..b9809ab068b --- /dev/null +++ b/srcpkgs/Carla/patches/fix-armv6l-build.patch @@ -0,0 +1,13 @@ +--- a/source/Makefile.deps.mk ++++ b/source/Makefile.deps.mk +@@ -526,6 +526,10 @@ + JUCE_GUI_EXTRA_LIBS = + endif + ++ifeq (arm-linux-gnueabihf,$(TARGET_MACHINE))) ++JUCE_CORE_LIBS += -latomic ++endif ++ + endif + + # --------------------------------------------------------------------------------------------------------------------- diff --git a/srcpkgs/Carla/template b/srcpkgs/Carla/template index 1da734fc6c6..44d7fc099ca 100644 --- a/srcpkgs/Carla/template +++ b/srcpkgs/Carla/template @@ -34,6 +34,10 @@ if [ "$XBPS_TARGET_LIBC" = "musl" ]; then export LDFLAGS="-lfts" fi +if [ "$XBPS_NO_ATOMIC8" ]; then + hostmakedepends+=" libatomic-devel" +fi + post_patch() { if [ "$CROSS_BUILD" ]; then vsed -i -e 's#\./carla-lv2-export#/usr/bin/carla-lv2-export#g' \