From e5ee32d4116680421ccc5c5810e28dada32e8359 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 31 May 2013 17:18:46 -0700 Subject: [PATCH] Fix network build on OSX when libvdeplug is available. --- makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 0557002b..b7d0e7a9 100644 --- a/makefile +++ b/makefile @@ -399,7 +399,11 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin) ifneq (,$(call find_include,libvdeplug)) # Provide support for vde networking NETWORK_CCDEFS += -DUSE_VDE_NETWORK - NETWORK_LDFLAGS += -lvdeplug -Wl,-R,$(dir $(call find_lib,vdeplug)) -L$(dir $(call find_lib,vdeplug)) + ifeq (Darwin,$(OSTYPE)) + NETWORK_LDFLAGS += -lvdeplug -L$(dir $(call find_lib,vdeplug)) + else + NETWORK_LDFLAGS += -lvdeplug -Wl,-R,$(dir $(call find_lib,vdeplug)) -L$(dir $(call find_lib,vdeplug)) + endif $(info using libvdeplug: $(call find_lib,vdeplug) $(call find_include,libvdeplug)) endif endif