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.
master
Michka Popoff 2021-02-28 01:36:43 +01:00 committed by GitHub
parent 7d308cf313
commit 8a77289bc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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