blob: b909b0601220d60f9cb93de77bf1e116e090047d (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#!/bin/bash
LIB="$1"
LIBDIR="$(rpm -E %_libdir)"
FILENAME="${LIB}.la"
FILE="${LIBDIR}/${FILENAME}"
if [ -r "${FILE}" ]; then
echo "Already exists !!! Abort"
exit 1
fi
LIBLONG="$(echo ${LIBDIR}/${LIB}.so.*.*)"
LIBSHORT="$(echo ${LIBDIR}/${LIB}.so.?)"
echo "Library: ${LIBLONG} | ${LIBSHORT}"
cat <<EOF >/tmp/$LIB.$$
# ${FILENAME} - a libtool library file
# Generated by libtool (GNU libtool) 2.4.2
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname='${LIBSHORT}'
# Names of this library.
library_names='${LIBLONG} ${LIBSHORT} ${LIB}.so'
# The name of the static archive.
old_library='${LIB}.a'
# Linker flags that can not go in dependency_libs.
inherited_linker_flags=''
# Libraries that this one depends upon.
dependency_libs=' -lm'
# Names of additional weak libraries provided by this library
weak_library_names=''
# Version information for ${LIB}.
current=4
age=2
revision=0
# Is this an already installed library?
installed=yes
# Should we warn about portability when linking against -modules?
shouldnotlink=no
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir='${LIBDIR}'
EOF
sudo mv "/tmp/$LIB.$$" "${FILE}"
|