summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStevenWdV <stevenwdv@gmail.com>2021-12-17 16:56:27 +0100
committerStevenWdV <stevenwdv@gmail.com>2021-12-17 16:56:27 +0100
commitaab2e4b966c82b67eb0e204060e5ea6cd4ea15cf (patch)
tree7e217178349b4e6b94769d65146f271e1a849a4c
parenta79995670baf0ae755cbbe78c5d77fc49575d342 (diff)
Fix relative paths in platform.mk
-rw-r--r--exports/platform.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/exports/platform.mk b/exports/platform.mk
index 60f47ee..d44c889 100644
--- a/exports/platform.mk
+++ b/exports/platform.mk
@@ -16,8 +16,9 @@ LIB_PREFIX = lib
LIB_SUFFIX = .so
endif
+exports_dir = $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
ifeq (Windows_NT,$(OS))
-export PATH := $(abspath ../../exports/$(GOOS)/$(GOARCH)):$(PATH)
+export PATH := $(exports_dir)/$(GOOS)/$(GOARCH):$(PATH)
else
-export LD_LIBRARY_PATH := $(abspath ../../exports/$(GOOS)/$(GOARCH)):$(LD_LIBRARY_PATH)
+export LD_LIBRARY_PATH := $(exports_dir)/$(GOOS)/$(GOARCH):$(LD_LIBRARY_PATH)
endif