From 1d0c0fc07d77d90bd302125d2ecbf440d273ac95 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 25 Oct 2012 15:59:42 -0700 Subject: [PATCH] makefile - added OSX build support for VDE2 when the MacPorts vde2 package is installed --- makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/makefile b/makefile index 50cde4e9..0d6a815f 100644 --- a/makefile +++ b/makefile @@ -98,6 +98,14 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin) ifeq (Darwin,$(OSTYPE)) OSNAME = OSX 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 ifneq (,$(GCC_VERSION)) ifeq (,$(shell $(GCC) -v /dev/null 2>&1 | grep '\-\-enable-lto'))