From 9123297951e1361671f3a4866ebeb6ab34721b87 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Sat, 22 May 2021 11:14:28 +0800 Subject: [PATCH] Update terminalimageviewer.rb --- terminalimageviewer.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/terminalimageviewer.rb b/terminalimageviewer.rb index c695956..0ca54a4 100644 --- a/terminalimageviewer.rb +++ b/terminalimageviewer.rb @@ -12,15 +12,15 @@ class Terminalimageviewer < Formula system "make" if OS.mac? # No expermimental/filesystem.h on mac. - system "/usr/local/bin/gcc-#{Formula["gcc"].version_suffix}", "-std=c++17", + system "/usr/local/bin/g++-#{Formula["gcc"].version_suffix}", "-std=c++17", "-Wall", "-fpermissive", "-fexceptions", "-O2", "-c", - "-L/usr/local/opt/gcc/lib/gcc/10/", + "-L/usr/local/opt/gcc/lib/gcc/11/", "tiv.cpp", "-o", "tiv.o" - system "/usr/local/bin/gcc-#{Formula["gcc"].version_suffix}", "tiv.o", "-o", - "tiv", "-L/usr/local/opt/gcc/lib/gcc/10/", + system "/usr/local/bin/g++-#{Formula["gcc"].version_suffix}", "tiv.o", "-o", + "tiv", "-L/usr/local/opt/gcc/lib/gcc/11/", "-pthread", "-s" else system "make"