makefile - added OSX build support for VDE2 when the MacPorts vde2 package is installed

This commit is contained in:
Mark Pizzolato 2012-10-25 15:59:42 -07:00
parent f2fdee9a8e
commit 1d0c0fc07d

View file

@ -98,6 +98,14 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
ifeq (Darwin,$(OSTYPE)) ifeq (Darwin,$(OSTYPE))
OSNAME = OSX OSNAME = OSX
LIBEXT = dylib LIBEXT = dylib
ifeq (incopt,$(shell if $(TEST) -d /opt/local/include; then echo incopt; fi))
INCPATH += /opt/local/include
OS_CCDEFS += -I/opt/local/include
endif
ifeq (libopt,$(shell if $(TEST) -d /opt/local/lib; then echo libopt; fi))
LIBPATH += /opt/local/lib
OS_LDFLAGS += -L/opt/local/lib
endif
# OSX's XCode gcc doesn't support LTO, but gcc built to explicitly enable it will work # OSX's XCode gcc doesn't support LTO, but gcc built to explicitly enable it will work
ifneq (,$(GCC_VERSION)) ifneq (,$(GCC_VERSION))
ifeq (,$(shell $(GCC) -v /dev/null 2>&1 | grep '\-\-enable-lto')) ifeq (,$(shell $(GCC) -v /dev/null 2>&1 | grep '\-\-enable-lto'))