-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathlib_symlinks
More file actions
executable file
·33 lines (28 loc) · 978 Bytes
/
lib_symlinks
File metadata and controls
executable file
·33 lines (28 loc) · 978 Bytes
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
27
28
29
30
31
32
33
#!/bin/sh
#---------------------------------------------------------------
# Project : Linux-Mandrake
# Module : spec-helper
# File : lib_symlinks
# 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
printf '%s\n' "No build root defined" >&2
exit 1
fi
if [ ! -d "$RPM_BUILD_ROOT" ]; then
printf '%s\n' "Invalid build root" >&2
exit 1
fi
libs=$(find "$RPM_BUILD_ROOT" -type d \
-a "(" -name lib -o -name lib64 ")" \
-a ! "(" -path '*/usr/src/debug*' -o -path '*/usr/lib/debug*' ")")
if [ -n "$libs" ] || [ -n "$EXTRA_LIBS_TO_SYMLINK" ]; then
/usr/sbin/ldconfig -n -N $libs $EXTRA_LIBS_TO_SYMLINK
fi
# lib_symlinks ends here