Skip to contentSkip to conversation

package/luajit: pass LDCONFIG=true to make sure dynamic library links are created

PATCH New Romain Naour 2 participants 2 messages Mar 23, 2016 – Mar 26, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/luajit: pass LDCONFIG=true to make sure dynamic library links are created

Since host-luajit is linked dynamically [1], for the same reason as for the target variant [2], override LDCONFIG with 'true' to create the libluajit-5.1.so.2 -> libluajit-5.1.so.2.0.4 symbolic link.

[1] 9ba8d1cce4ab00307827083bae234d87b37fb967
[2] 40089283e91fc6daae1aff0346f6821bd2bcab80

Fixes:
http://autobuild.buildroot.net/results/4dc/4dcbcde0046e265317e170a977e699e5c3a06b87/

Cc Francois Perrad <[email protected]>
---
 package/luajit/luajit.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/luajit/luajit.mk +1 -1
index 322d203..623bfcc 100644
@@ -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))
Signature · 1 line
2.5.5
#1 lore raw

PATCH 1/1 package/luajit: pass LDCONFIG=true to make sure dynamic library links are created

Hello,

Quoted 7 lines · Romain Naour

Since host-luajit is linked dynamically [1], for the same reason as for the target variant [2], override LDCONFIG with 'true' to create the libluajit-5.1.so.2 -> libluajit-5.1.so.2.0.4 symbolic link.

[1] 9ba8d1cce4ab00307827083bae234d87b37fb967
[2] 40089283e91fc6daae1aff0346f6821bd2bcab80

Quoted 8 lines

Fixes:
http://autobuild.buildroot.net/results/4dc/4dcbcde0046e265317e170a977e699e5c3a06b87/

Cc Francois Perrad <[email protected]>
---
 package/luajit/luajit.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

I've applied, but after completely rewording the commit log. Indeed, there is a priori no reason why ldconfig should not work when building for the host. So the argument "let's do like for the target" is not very good.

However, it turns out that on some machines (including gcc20, where the build failure occurs), ldconfig must be called as /sbin/ldconfig, since /sbin is not in the PATH of normal users. And when ldconfig fails to run, the luajit Makefile does not create the symbolic links. And since indeed running ldconfig is not really needed for us, passing LDCONFIG=true is a reasonable workaround.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com