aboutsummaryrefslogtreecommitdiffstats
path: root/lib_symlinks
blob: d06786ef4a3c5e26ada2f8749501eb0577923dc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
#---------------------------------------------------------------
# Project         : Linux-Mandrake
# Module          : spec-helper
# File            : lib_symlinks
# Version         : $Id$
# Author          : Frederic Lepied
# Created On      : Tue Nov  7 08:33:05 2000
# Description	  : Run ldconfig to create symlinks to libraries.
#
# Copyright (C) 2000 by Frederic Lepied <flepied@mandrakesoft.com>
# Redistribution of this file is permitted under the terms of the GNU 
# Public License (GPL)
#---------------------------------------------------------------

if [ -z "$RPM_BUILD_ROOT" ]; then
    exit 0
fi

libs=`find $RPM_BUILD_ROOT -name lib -a -type d`

if [ -n "$libs" -o -n "$EXTRA_LIBS_TO_SYMLINK" ]; then
    /sbin/ldconfig -n -N $libs $EXTRA_LIBS_TO_SYMLINK
fi

# lib_symlinks ends here