diff mbox

[1/1] swig: use a relative path for the host swig2.0 symlink's target

Message ID 1447669504-10777-1-git-send-email-phil@zankapfel.net
State Accepted
Headers show

Commit Message

Phil Eichinger Nov. 16, 2015, 10:25 a.m. UTC
An absolute path isn't really necessary and breaks relocating

Signed-off-by: Phil Eichinger <phil@zankapfel.net>
---
 package/swig/swig.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Arnout Vandecappelle Nov. 16, 2015, 8:07 p.m. UTC | #1
On 16-11-15 11:25, Phil Eichinger wrote:
> An absolute path isn't really necessary and breaks relocating
> 
> Signed-off-by: Phil Eichinger <phil@zankapfel.net>

Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
 (untested)

 Regards,
 Arnout

> ---
>  package/swig/swig.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/package/swig/swig.mk b/package/swig/swig.mk
> index 3f3ab2f..6b9b8ae 100644
> --- a/package/swig/swig.mk
> +++ b/package/swig/swig.mk
> @@ -25,7 +25,7 @@ SWIG_LICENSE_FILES = LICENSE LICENSE-GPL LICENSE-UNIVERSITIES
>  # swig, so that our swig always gets used.
>  
>  define HOST_SWIG_INSTALL_SYMLINK
> -	ln -fs $(HOST_DIR)/usr/bin/swig $(HOST_DIR)/usr/bin/swig$(SWIG_VERSION_MAJOR)
> +	ln -fs swig $(HOST_DIR)/usr/bin/swig$(SWIG_VERSION_MAJOR)
>  endef
>  
>  HOST_SWIG_POST_INSTALL_HOOKS += HOST_SWIG_INSTALL_SYMLINK
>
Thomas Petazzoni Nov. 16, 2015, 8:27 p.m. UTC | #2
Dear Phil Eichinger,

On Mon, 16 Nov 2015 11:25:04 +0100, Phil Eichinger wrote:
> An absolute path isn't really necessary and breaks relocating
> 
> Signed-off-by: Phil Eichinger <phil@zankapfel.net>
> ---
>  package/swig/swig.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to the next branch, thanks!

Thomas
diff mbox

Patch

diff --git a/package/swig/swig.mk b/package/swig/swig.mk
index 3f3ab2f..6b9b8ae 100644
--- a/package/swig/swig.mk
+++ b/package/swig/swig.mk
@@ -25,7 +25,7 @@  SWIG_LICENSE_FILES = LICENSE LICENSE-GPL LICENSE-UNIVERSITIES
 # swig, so that our swig always gets used.
 
 define HOST_SWIG_INSTALL_SYMLINK
-	ln -fs $(HOST_DIR)/usr/bin/swig $(HOST_DIR)/usr/bin/swig$(SWIG_VERSION_MAJOR)
+	ln -fs swig $(HOST_DIR)/usr/bin/swig$(SWIG_VERSION_MAJOR)
 endef
 
 HOST_SWIG_POST_INSTALL_HOOKS += HOST_SWIG_INSTALL_SYMLINK