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' \