-
Notifications
You must be signed in to change notification settings - Fork 15
/
default.so.do
55 lines (50 loc) · 1.17 KB
/
default.so.do
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
redo-ifchange config.od $OUT/$2.list
. ./config.od
libs="$LIBS_QT $LIBS_PAM $LIBS_DBUS $LIBS_SSL $LIBS"
libs=
libdep=
case $2 in
libwvbase) libs="$LIBS" ;;
libwvutils) libdep="$OUT/libwvbase.so" libs="$LIBS_PAM $LIBS" ;;
libwvstreams)
libdep="$OUT/libwvutils.so $OUT/libwvbase.so"
libs="$LIBS_SSL $LIBS"
;;
libuniconf)
libdep="$OUT/libwvstreams.so $OUT/libwvutils.so $OUT/libwvbase.so"
libs="$LIBS_SSL $LIBS"
;;
libwvdbus)
libdep="$OUT/libwvstreams.so $OUT/libwvutils.so $OUT/libwvbase.so"
libs="$LIBS_DBUS $LIBS"
;;
libwvtest)
libdep="$OUT/libwvbase.so"
libs="$LIBS"
;;
libwvstatic)
libdep=
libs="$LIBS_QT $LIBS_PAM $LIBS_DBUS $LIBS_SSL $LIBS"
;;
esac
obj=$(
while read x; do
echo "$OUT/$x"
done <$OUT/$2.list
)
redo-ifchange $obj $libdep
sofile="$OUT/$2.so.$SO_VERSION"
zdefs=
[ -z "$_LINUX" ] || zdefs="-Wl,-z,defs"
rm -f "$sofile"
if [ -n "$_WIN32" ]; then
echo "Skipping $1 on win32 (can't build shared libraries)" >&2
redo-ifchange "$OUT/$2.a"
ln -s $2.a "$sofile"
else
$CXX -o "$sofile" -shared \
$zdefs \
$LDFLAGS \
$obj $libdep $libs
fi
ln -s "$sofile" $3