Skip to contentSkip to conversation

automatically run ldconfig on installation

PATCH New Stelian Pop 1 participant 1 message Sep 29, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 automatically run ldconfig on installation

Hi,

When installing the userspace skin libraries, 'ldconfig' is not automatically run to update the dynamic library loader cache.

The attached patch does just that, but it does so only if the user is not installing cross-compiled libraries as it does not make sense in this case.

Stelian.

configure.in +1 -0
Index: configure.in
===================================================================
@@ -593,6 +593,7 @@
 AC_SUBST([CONFIG_STATUS_DEPENDENCIES],
         ['$(top_srcdir)/src/skins/posix/posix.wrappers'])
 AC_SUBST(XENO_POSIX_WRAPPERS)
+AC_SUBST(cross_compiling)
 
 base=asm-$XENO_TARGET_ARCH
 AC_CONFIG_LINKS([src/include/asm/xenomai:include/$base])
skins/Makefile.am +2 -0
Index: src/skins/Makefile.am
===================================================================
@@ -1,2 +1,4 @@
+install-data-local:
+	if test "@cross_compiling@" = "no"; then ldconfig; fi
 
 SUBDIRS = native posix rtdm vxworks vrtx rtai
Signature · 1 line
Stelian Pop <[email protected]>