1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
AC_DEFUN(DC_SETVERSIONSCRIPT, [
VERSIONSCRIPT="$1"
SAVE_LDFLAGS="${LDFLAGS}"
AC_MSG_CHECKING([for how to set version script])
for addldflags in "-Wl,--version-script -Wl,${VERSIONSCRIPT}"; do
LDFLAGS="${SAVE_LDFLAGS} ${addldflags}"
AC_TRY_LINK([], [], [
AC_MSG_RESULT($addldflags)
], [
AC_MSG_RESULT([don't know])
LDFLAGS="${SAVE_LDFLAGS}"
])
done
])
|
|
|
|
<
<
<
>
>
>
>
>
>
>
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
AC_DEFUN(DC_SETVERSIONSCRIPT, [
VERSIONSCRIPT="$1"
SAVE_LDFLAGS="${LDFLAGS}"
AC_MSG_CHECKING([for how to set version script])
for tryaddldflags in "-Wl,--version-script -Wl,${VERSIONSCRIPT}"; do
LDFLAGS="${SAVE_LDFLAGS} ${tryaddldflags}"
AC_TRY_LINK([], [], [
addldflags="${tryaddldflags}"
break
])
done
if test -n "${addldflags}"; then
LDFLAGS="${SAVE_LDFLAGS} ${addldflags}"
AC_MSG_RESULT($addldflags)
else
LDFLAGS="${SAVE_LDFLAGS}"
AC_MSG_RESULT([don't know])
fi
])
|