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
parent
7d308cf313
commit
8a77289bc9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue