diff options
| author | StevenWdV <stevenwdv@gmail.com> | 2021-12-17 16:56:27 +0100 |
|---|---|---|
| committer | StevenWdV <stevenwdv@gmail.com> | 2021-12-17 16:56:27 +0100 |
| commit | aab2e4b966c82b67eb0e204060e5ea6cd4ea15cf (patch) | |
| tree | 7e217178349b4e6b94769d65146f271e1a849a4c | |
| parent | a79995670baf0ae755cbbe78c5d77fc49575d342 (diff) | |
Fix relative paths in platform.mk
| -rw-r--r-- | exports/platform.mk | 5 |
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 |
