Add curdir to path so libucl.dll is avail on Windows
This commit is contained in:
parent
0cda9a7539
commit
612f335a74
7
Makefile
7
Makefile
|
@ -3,10 +3,13 @@ CGO_LDFLAGS:=-L$(CURDIR)/vendor/libucl
|
||||||
LIBUCL_NAME=libucl.a
|
LIBUCL_NAME=libucl.a
|
||||||
TEST?=./...
|
TEST?=./...
|
||||||
|
|
||||||
# If we're on Windows, we need to change some variables so things compile
|
# Windows-only
|
||||||
# properly.
|
|
||||||
ifeq ($(OS), Windows_NT)
|
ifeq ($(OS), Windows_NT)
|
||||||
|
# The Libucl library is named libucl.dll
|
||||||
LIBUCL_NAME=libucl.dll
|
LIBUCL_NAME=libucl.dll
|
||||||
|
|
||||||
|
# Add the current directory on the path so the DLL is available.
|
||||||
|
export PATH := $(CURDIR):$(PATH)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
export CGO_CFLAGS CGO_LDFLAGS PATH
|
export CGO_CFLAGS CGO_LDFLAGS PATH
|
||||||
|
|
Loading…
Reference in New Issue