libbsd: fix libpath to not use host path
libpath.so uses host path in ld script causing other packages fail to cross compile, e.g. perl: "ld: cannot find /usr/lib/libbsd.so.0.11.6: No such file or directory" Fixes: openwrt/packages#19390 Signed-off-by: Xuefer H <xuefer@gmail.com>
This commit is contained in:
		
							
								
								
									
										13
									
								
								package/libs/libbsd/patches/001-fix-libpath.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								package/libs/libbsd/patches/001-fix-libpath.patch
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| do not use host path to fix cross compiling | ||||
|  | ||||
| --- a/src/Makefile.am | ||||
| +++ b/src/Makefile.am | ||||
| @@ -160,7 +160,7 @@ | ||||
|  	(echo '/* GNU ld script'; \ | ||||
|  	 echo ' * The MD5 functions are provided by the libmd library. */'; \ | ||||
|  	 cat format.ld; \ | ||||
| -	 echo "GROUP($(runtimelibdir)/$$soname AS_NEEDED($(MD5_LIBS)))"; \ | ||||
| +	 echo "GROUP($$soname AS_NEEDED($(MD5_LIBS)))"; \ | ||||
|  	)>$(DESTDIR)$(libdir)/libbsd.so | ||||
|  else | ||||
|  	if [ "$(libdir)" != "$(runtimelibdir)" ]; then \ | ||||
		Reference in New Issue
	
	Block a user
	 Xuefer H
					Xuefer H