Tcl Extension Architecture (TEA) Sample Extension

Check-in [3b0f3a3de5]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Correct compiler/linker flags for threaded builds on OpenBSD.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3b0f3a3de5f9e1cfebb7327a8690067e77891719
User & Date: stwo 2010-02-19 13:16:34.000
Context
2010-04-23
11:23
configure: Regenerated to use latest TEA tcl.m4. check-in: 532413ad00 user: nijtmans tags: trunk
2010-02-19
13:16
Correct compiler/linker flags for threaded builds on OpenBSD. check-in: 3b0f3a3de5 user: stwo tags: trunk
2010-01-19
22:30
configure: Regenerated to use latest TEA tcl.m4 check-in: 563753e549 user: nijtmans tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to ChangeLog.






1
2
3
4
5
6
7






2010-01-19  Jan Nijtmans <[email protected]>

	* configure: Regenerated to use latest TEA tcl.m4.

2009-04-27  Jeff Hobbs  <[email protected]>

	* tcl.m4 (TEA_CONFIG_CFLAGS): harden the check to add _r to CC on
>
>
>
>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
2010-02-19  Stuart Cassoff  <[email protected]>

	* tcl.m4: Correct compiler/linker flags
	for threaded builds on OpenBSD.
	* configure: Regenerated to use latest TEA tcl.m4.

2010-01-19  Jan Nijtmans <[email protected]>

	* configure: Regenerated to use latest TEA tcl.m4.

2009-04-27  Jeff Hobbs  <[email protected]>

	* tcl.m4 (TEA_CONFIG_CFLAGS): harden the check to add _r to CC on
Changes to configure.
8571
8572
8573
8574
8575
8576
8577








8578
8579
8580
8581
8582
8583
8584

		LDFLAGS=-Wl,-export-dynamic

else
  LDFLAGS=""
fi










	    # OpenBSD doesn't do version numbers with dots.
	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
	    TCL_LIB_VERSIONS_OK=nodots
	    ;;
	NetBSD-*|FreeBSD-[3-4].*)
	    # FreeBSD 3.* and greater have ELF.







>
>
>
>
>
>
>
>







8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592

		LDFLAGS=-Wl,-export-dynamic

else
  LDFLAGS=""
fi

	    if test "${TCL_THREADS}" = "1"; then

		# OpenBSD builds and links with -pthread, never -lpthread.
		LIBS=`echo $LIBS | sed s/-lpthread//`
		CFLAGS="$CFLAGS -pthread"
		SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread"

fi

	    # OpenBSD doesn't do version numbers with dots.
	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
	    TCL_LIB_VERSIONS_OK=nodots
	    ;;
	NetBSD-*|FreeBSD-[3-4].*)
	    # FreeBSD 3.* and greater have ELF.
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627

    if test "$DL_OBJS" != "tclLoadNone.o" -a "$GCC" = yes; then

	case $system in
	    AIX-*) ;;
	    BSD/OS*) ;;
	    IRIX*) ;;
	    NetBSD-*|FreeBSD-*) ;;
	    Darwin-*) ;;
	    SCO_SV-3.2*) ;;
	    windows) ;;
	    *) SHLIB_CFLAGS="-fPIC" ;;
	esac
fi








|







9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635

    if test "$DL_OBJS" != "tclLoadNone.o" -a "$GCC" = yes; then

	case $system in
	    AIX-*) ;;
	    BSD/OS*) ;;
	    IRIX*) ;;
	    NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
	    Darwin-*) ;;
	    SCO_SV-3.2*) ;;
	    windows) ;;
	    *) SHLIB_CFLAGS="-fPIC" ;;
	esac
fi