Description: Add option to link libatomic Some platforms may need to link libatomic to get a successful build. This is the case for armel in Debian. Here, we add an option to enable linking libatomic. Author: Athos Ribeiro Forwarded: not-needed Last-Update: 2024-05-03 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/ext/re2/extconf.rb +++ b/ext/re2/extconf.rb @@ -133,6 +133,9 @@ module RE2 def build_extension $CFLAGS << " -Wall -Wextra -funroll-loops" $CXXFLAGS << " -Wall -Wextra -funroll-loops" + if ENV["X_DEB_LINK_ATOMIC"] + $LDFLAGS << " -latomic" + end # Pass -x c++ to force gcc to compile the test program # as C++ (as it will end in .c by default).