Skip to content

Commit 25b835f

Browse files
committed
freeimage: fix build on arm64 linux by not overriding CXXFLAGS
1 parent 0a3cfab commit 25b835f

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)