Debian Codegraph @

debian/patches/link-libatomic.patch

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