From f95c47d7f7a921078bea583f4f57d797443a337e Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Tue, 13 Aug 2024 00:50:40 +0200 Subject: [PATCH] move LD_LIBRARY_PATH=./target from flake to example makefile --- examples/Makefile | 2 +- flake.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Makefile b/examples/Makefile index b4933a0..457e03c 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -22,7 +22,7 @@ else endif example-%: $(BIN)/$(EXAMPLE_DIR)/% - $(BIN)/$(EXAMPLE_DIR)/$(EXAMPLE) + LD_LIBRARY_PATH=$(BIN) $(BIN)/$(EXAMPLE_DIR)/$(EXAMPLE) $(BIN)/%: %.c @mkdir -p $(@D) diff --git a/flake.nix b/flake.nix index 68c9d3e..ebb3e5a 100644 --- a/flake.nix +++ b/flake.nix @@ -29,7 +29,7 @@ inputsFrom = [ self.packages.${system}.default ]; # https://discourse.nixos.org/t/setting-up-vulkan-for-development/11715/3 - LD_LIBRARY_PATH = with pkgs; "${glfw}/lib:${vulkan-loader}/lib:${vulkan-validation-layers}/lib:./target"; + LD_LIBRARY_PATH = with pkgs; "${glfw}/lib:${vulkan-loader}/lib:${vulkan-validation-layers}/lib"; VULKAN_SDK = with pkgs; "${vulkan-headers}"; VK_LAYER_PATH = with pkgs; "${vulkan-validation-layers}/share/vulkan/explicit_layer.d"; PTK_LOG_LEVEL = "debug";