From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Martin Date: Mon, 13 Jul 2015 12:17:57 +0200 Subject: [Buildroot] [PATCH v3 4/4] Makefile: staging symlink uses a relative path In-Reply-To: <1436782677-12557-1-git-send-email-s.martin49@gmail.com> References: <1436782677-12557-1-git-send-email-s.martin49@gmail.com> Message-ID: <1436782677-12557-4-git-send-email-s.martin49@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net A step forward toward a relocatable SDK. Signed-off-by: Samuel Martin --- changes v2-v3: - no change --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9ae9afb..2ca0ef2 100644 --- a/Makefile +++ b/Makefile @@ -447,7 +447,7 @@ $(STAGING_DIR): @ln -snf lib $(STAGING_DIR)/usr/$(LIB_SYMLINK) @mkdir -p $(STAGING_DIR)/usr/include @mkdir -p $(STAGING_DIR)/usr/bin - @ln -snf $(STAGING_DIR) $(BASE_DIR)/staging + @ln -snf $(subst $(BASE_DIR)/,,$(STAGING_DIR)) $(BASE_DIR)/staging ifeq ($(BR2_ROOTFS_SKELETON_CUSTOM),y) TARGET_SKELETON = $(BR2_ROOTFS_SKELETON_CUSTOM_PATH) -- 2.4.5