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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
$NetBSD: patch-configure,v 1.3 2022/06/19 14:43:28 gdt Exp $
Add support for MirBSD as OpenBSD and DragonFly as FreeBSD.
Upstream has support to use the version with or without dots as the
shlib suffix, conditioned on TCL_LIB_VERSIONS_OK. This patch forces
that to be the "NODOTS" flavor always. \todo Explain the plan; this
seems likely to make the build the same on all pkgsrc platforms.
Define PVNODOTS and use it to overwrite SHARED_LIB_SUFFIX and
define UNSHARED_LIB_SUFFIX. PVNODOTS appears to have the same value as
PACKAGE_VERSION_NO_DOTS, that upstream configure already computes.
\todo Explain why there is a new variable.
Substitute the already-computed SHLIB_VERSION, for use in Makefile.in.
\todo File changes upstream (but upstream is not functioning).
--- configure.orig 2010-09-16 20:46:47.000000000 +0000
+++ configure
@@ -8007,7 +8007,7 @@ fi
fi
;;
- OpenBSD-*)
+ OpenBSD-*|MirBSD-*)
SHLIB_CFLAGS="-fPIC"
SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}'
SHLIB_SUFFIX=".so"
@@ -8099,11 +8099,11 @@ fi
;;
esac
;;
- FreeBSD-*)
+ FreeBSD-*|DragonFly-*)
# This configuration from FreeBSD Ports.
SHLIB_CFLAGS="-fPIC"
SHLIB_LD="${CC} -shared"
- TCL_SHLIB_LD_EXTRAS="-soname \$@"
+ TCL_SHLIB_LD_EXTRAS="-Wl,-soname \$@"
SHLIB_SUFFIX=".so"
LDFLAGS=""
if test $doRpath = yes; then
@@ -8899,7 +8899,7 @@ fi
BSD/OS*) ;;
CYGWIN_*) ;;
IRIX*) ;;
- NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
+ NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*|MirBSD-*) ;;
Darwin-*) ;;
SCO_SV-3.2*) ;;
windows) ;;
@@ -15948,14 +15948,7 @@ fi
PACKAGE_VERSION_NODOTS="`echo $PACKAGE_VERSION | sed -e 's/\.//g'`"
-if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
- EXP_LIB_VERSION=$PACKAGE_VERSION
-else
- EXP_LIB_VERSION=$PACKAGE_VERSION_NODOTS
-fi
-if test $iunix -eq 1 ; then
EXP_LIB_VERSION=$PACKAGE_VERSION_NODOTS
-fi
# also remove dots on systems that don't support filenames > 14
# (are there systems which support shared libs and restrict filename lengths!?)
@@ -16021,11 +16014,7 @@ if test "$FRAMEWORK_BUILD" = "1" ; then
_ACEOF
else
- if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
- EXP_LIB_FLAG="-lexpect${EXP_LIB_VERSION}"
- else
- EXP_LIB_FLAG="-lexpect`echo ${EXP_LIB_VERSION} | tr -d .`"
- fi
+ EXP_LIB_FLAG="-lexpect`echo ${EXP_LIB_VERSION} | tr -d .`"
EXP_BUILD_LIB_SPEC="-L`pwd` ${EXP_LIB_FLAG}"
EXP_LIB_SPEC="-L${libdir} ${EXP_LIB_FLAG}"
fi
@@ -16341,6 +16330,9 @@ rm -f conftest*
# substituted. (@@@ Might not be necessary anymore)
#--------------------------------------------------------------------
+ PVNODOTS=`echo ${PACKAGE_VERSION} | tr -d .`
+ SHARED_LIB_SUFFIX=${PVNODOTS}.so
+ UNSHARED_LIB_SUFFIX=${PVNODOTS}.a
if test "${TEA_PLATFORM}" = "windows" ; then
if test "${SHARED_BUILD}" = "1" ; then
# We force the unresolved linking of symbols that are really in
@@ -17176,6 +17170,7 @@ s,@VC_MANIFEST_EMBED_EXE@,$VC_MANIFEST_E
s,@TCLSH_PROG@,$TCLSH_PROG,;t t
s,@LIBOBJS@,$LIBOBJS,;t t
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
+s,@SHLIB_VERSION@,$SHLIB_VERSION,;t t
CEOF
_ACEOF
|