makefile: Add support for XCode 12 on macOS 11
Solves problems reported in #934 and #964
This commit is contained in:
parent
bf2dabdebf
commit
0fb0ab516d
1 changed files with 11 additions and 1 deletions
10
makefile
10
makefile
|
@ -543,6 +543,11 @@ ifeq (${WIN32},) #*nix Environments (&& cygwin)
|
||||||
OS_CCDEFS += -DHAVE_DLOPEN=${LIBEXT}
|
OS_CCDEFS += -DHAVE_DLOPEN=${LIBEXT}
|
||||||
OS_LDFLAGS += -ldld
|
OS_LDFLAGS += -ldld
|
||||||
$(info using libdld: $(call find_lib,dld) $(call find_include,dlfcn))
|
$(info using libdld: $(call find_lib,dld) $(call find_include,dlfcn))
|
||||||
|
else
|
||||||
|
ifeq (Darwin,$(OSTYPE))
|
||||||
|
OS_CCDEFS += -DHAVE_DLOPEN=dylib
|
||||||
|
$(info using macOS dlopen with .dylib)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -704,6 +709,11 @@ ifeq (${WIN32},) #*nix Environments (&& cygwin)
|
||||||
$(info using libpcap: $(call find_lib,$(PCAPLIB)) $(call find_include,pcap))
|
$(info using libpcap: $(call find_lib,$(PCAPLIB)) $(call find_include,pcap))
|
||||||
endif
|
endif
|
||||||
LIBEXT = $(LIBEXTSAVE)
|
LIBEXT = $(LIBEXTSAVE)
|
||||||
|
ifeq (Darwin,$(OSTYPE)$(findstring USE_,$(NETWORK_CCDEFS)))
|
||||||
|
NETWORK_CCDEFS += -DUSE_SHARED
|
||||||
|
NETWORK_FEATURES = - dynamic networking support using $(OSNAME) provided libpcap components
|
||||||
|
$(info using macOS dynamic libpcap: $(call find_include,pcap))
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
# On non-Linux platforms, we'll still try to provide deprecated support for libpcap in /usr/local
|
# On non-Linux platforms, we'll still try to provide deprecated support for libpcap in /usr/local
|
||||||
|
|
Loading…
Add table
Reference in a new issue