Skip to content

Commit f63e7c7

Browse files
authored
Merge pull request Homebrew#251869 from Homebrew/freeimage-arm64-linux
freeimage: fix build on arm64 linux by not overriding CXXFLAGS
2 parents cd0b33c + 25b835f commit f63e7c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Formula/f/freeimage.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def install
5555
ENV.append_to_cflags "-Wno-implicit-function-declaration" if DevelopmentTools.clang_build_version >= 1403
5656

5757
# Fix build error on Linux: ImathVec.h:771:37: error: ISO C++17 does not allow dynamic exception specifications
58-
ENV["CXXFLAGS"] = "-std=c++98" if OS.linux?
58+
ENV.append "CXX", "-std=c++98" if OS.linux?
59+
5960
system "make", "-f", "Makefile.gnu"
6061
system "make", "-f", "Makefile.gnu", "install", "PREFIX=#{prefix}"
6162
system "make", "-f", "Makefile.fip"

0 commit comments

Comments
 (0)