void-packages/srcpkgs/Aegisub/patches/libatomic.patch
2019-12-02 19:51:03 +01:00

35 lines
1.1 KiB
Diff

--- Makefile.inc.in
+++ Makefile.inc.in
@@ -8,6 +8,7 @@ HAVE_OSS = @with_oss@
HAVE_PORTAUDIO = @with_portaudio@
HAVE_FFMS2 = @with_ffms2@
HAVE_LIBPULSE = @with_libpulse@
+HAVE_LIBATOMIC = @with_libatomic@
##############
# BUILD OUTPUT
--- configure.ac
+++ configure.ac
@@ -376,6 +376,9 @@ AGI_OPT_PKG(ffms2, [build without ffms2 A/V provider [auto]], [Enable FFMS2 supp
AGI_OPT_PKG(fftw3, [build without fftw support [auto]], [Enable fftw support])
AGI_OPT_PKG(hunspell, [build without hunspell spell-checking [auto]], [Enable Hunspell support])
+AC_ARG_WITH([libatomic], AS_HELP_STRING([--with-libatomic],[Use libatomic. [no]]))
+AC_SUBST(with_libatomic)
+
######################################################
# Debugging support
######################################################
--- src/Makefile
+++ src/Makefile
@@ -179,6 +179,10 @@ src_LIBS += $(LIBS_HUNSPELL)
src_OBJ += $(d)spellchecker_hunspell.o
endif
+ifeq (yes, $(HAVE_LIBATOMIC))
+src_LIBS += -latomic
+endif
+
#####################
# SOURCE-LEVEL CFLAGS
#####################