Skip to content

Commit cc7c24a

Browse files
committed
genometools: workaround for arm64 linux
1 parent e20867e commit cc7c24a

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)