Skip to content

Commit 1af2bfb

Browse files
authored
Merge pull request #219971 from Homebrew/genometools-arm-linux
genometools: workaround for arm64 linux
2 parents 5fec7fe + cc7c24a commit 1af2bfb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Formula/g/genometools.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ def python3
4141
end
4242

4343
def install
44+
# Workaround for arm64 linux from char being unsigned.
45+
# Same root cause as https://github.com/genometools/genometools/issues/311
46+
ENV.append_to_cflags "-fsigned-char" if OS.linux? && Hardware::CPU.arm?
47+
4448
# Manually unbundle as useshared=yes requires Lua 5.1 and older SAMtools
4549
rm_r(Dir["src/external/{bzip2,expat,sqlite,tre,zlib}*"])
4650

0 commit comments

Comments
 (0)