Debian Codegraph @

debian/patches/link-libatomic.patch

raw symbols SCIP
1 Descriptionscip-debian debian ruby-re2 2.27.0-3 ruby-re2/patches/`link-libatomic.patch`#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 Authorscip-debian debian ruby-re2 2.27.0-3 ruby-re2/patches/`link-libatomic.patch`#Author.: Athos Ribeiro <[email protected]scip-debian . . . identity/`[email protected]`.>
6 Forwardedscip-debian debian ruby-re2 2.27.0-3 ruby-re2/patches/`link-libatomic.patch`#Forwarded.: not-needed
7 Last-Updatescip-debian debian ruby-re2 2.27.0-3 ruby-re2/patches/`link-libatomic.patch`#Last-Update.: 2024-05-03
8 ---
9 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
10 --- a/ext/re2/extconf.rbscip-debian debian ruby-re2 2.27.0-3 ruby-re2/upstream/`ext/re2/extconf.rb`:
11 +++ b/ext/re2/extconf.rbscip-debian debian ruby-re2 2.27.0-3 ruby-re2/upstream/`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).