mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
package/luajit: ensure dynamic library symlinks are created
The luajit Makefile has the following logic: $(LDCONFIG) $(INSTALL_LIB) && \ $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT1) && \ $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT2) || : So if ldconfig fails for some reason, the symbolic links to refer to the luajit library are not created. Since ldconfig for the target didn't make sense, LDCONFIG=true has been added a long time ago when building the target variant of luajit. However, since commit 9ba8d1cce4ab00307827083bae234d87b37fb967, the host variant of luajit is also linked dynamically. While ldconfig for the host should work, on certain machines ldconfig is not available in the PATH, and needs to be explicitly called as /sbin/ldconfig. However, since output/host/usr/lib is in the RPATH of the binaries we create, there is really no need to bother running ldconfig, so we simply pass LDCONFIG=true, like we do for the target variant. This ensures that the symlinks are always created. Fixes: http://autobuild.buildroot.net/results/4dc/4dcbcde0046e265317e170a977e699e5c3a06b87/ Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Francois Perrad <francois.perrad@gadz.org> [Thomas: rewrite commit log with a proper explanation.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
66471f0a58
commit
b33c4a2d4e
@ -72,7 +72,7 @@ define HOST_LUAJIT_BUILD_CMDS
|
||||
endef
|
||||
|
||||
define HOST_LUAJIT_INSTALL_CMDS
|
||||
$(MAKE) PREFIX="/usr" DESTDIR="$(HOST_DIR)" -C $(@D) install
|
||||
$(MAKE) PREFIX="/usr" DESTDIR="$(HOST_DIR)" LDCONFIG=true -C $(@D) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
|
Loading…
x
Reference in New Issue
Block a user