Add curdir to path so libucl.dll is avail on Windows

This commit is contained in:
Mitchell Hashimoto 2014-05-29 17:26:32 -07:00
parent 0cda9a7539
commit 612f335a74
1 changed files with 5 additions and 2 deletions

View File

@ -3,10 +3,13 @@ CGO_LDFLAGS:=-L$(CURDIR)/vendor/libucl
LIBUCL_NAME=libucl.a
TEST?=./...
# If we're on Windows, we need to change some variables so things compile
# properly.
# Windows-only
ifeq ($(OS), Windows_NT)
# The Libucl library is named libucl.dll
LIBUCL_NAME=libucl.dll
# Add the current directory on the path so the DLL is available.
export PATH := $(CURDIR):$(PATH)
endif
export CGO_CFLAGS CGO_LDFLAGS PATH