Wireshark-dev: Re: [Wireshark-dev] Mac Build Error
From: Stig Bjørlykke <[email protected]>
Date: Wed, 20 Jan 2016 18:02:22 +0100
On Wed, Jan 20, 2016 at 3:48 PM, David Morsberger <[email protected]> wrote:
My current workaround is the following change to CMakeLists.txt :
-if(NOT CMAKE_C_COMPILER_ID MATCHES "MSVC")
+if(NOT (CMAKE_C_COMPILER_ID MATCHES "MSVC" OR XCODE))
 	set(WIRESHARK_LD_FLAGS
 		-Wl,--as-needed

This is more like fixing the symptom, right?
The real issue here is that CMake finds support for the flags while building with Xcode does not.


--
Stig Bjørlykke