From 8a77289bc9f13a6bcbd7ea42d53baf0f9ceb4190 Mon Sep 17 00:00:00 2001 From: Michka Popoff Date: Sun, 28 Feb 2021 01:36:43 +0100 Subject: [PATCH] libvncserver: use generic shared library and fix test for Linux (#72095) For the test: lc++ breaks the compilation on linux with gcc, and is not needed on mac, so let's just remove it. --- Formula/libvncserver.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/libvncserver.rb b/Formula/libvncserver.rb index 0ebdb26bc94..c5e374e14d8 100644 --- a/Formula/libvncserver.rb +++ b/Formula/libvncserver.rb @@ -28,7 +28,7 @@ class Libvncserver < Formula def install args = std_cmake_args + %W[ -DJPEG_INCLUDE_DIR=#{Formula["jpeg-turbo"].opt_include} - -DJPEG_LIBRARY=#{Formula["jpeg-turbo"].opt_lib}/libjpeg.dylib + -DJPEG_LIBRARY=#{Formula["jpeg-turbo"].opt_lib}/#{shared_library("libjpeg")} -DOPENSSL_ROOT_DIR=#{Formula["openssl@1.1"].opt_prefix} ] @@ -52,7 +52,7 @@ class Libvncserver < Formula EOS system ENV.cc, "server.cpp", "-I#{include}", "-L#{lib}", - "-lvncserver", "-lc++", "-o", "server" + "-lvncserver", "-o", "server" system "./server" end end