summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authornijtmans <nijtmans>2009-11-19 22:21:01 (GMT)
committernijtmans <nijtmans>2009-11-19 22:21:01 (GMT)
commit245b7b3172213b9fa7ab9e493c0a7965fe1a64a6 (patch)
tree9834e2fe639adbc3108681060a21472d18cff4d5 /unix/tcl.m4
parent1501cea96479e7bbb0ffb3eade53e0581934d037 (diff)
downloadtk-245b7b3172213b9fa7ab9e493c0a7965fe1a64a6.zip
tk-245b7b3172213b9fa7ab9e493c0a7965fe1a64a6.tar.gz
tk-245b7b3172213b9fa7ab9e493c0a7965fe1a64a6.tar.bz2
[Patch #2883533] tcl.m4 support for Haiku OS
unix/Makefile.in: Fix library order in X11_LIB_SWITCHES
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m412
1 files changed, 11 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 479ea08..ed46d61 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1102,7 +1102,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
TCL_LIB_VERSIONS_OK=ok
CFLAGS_DEBUG=-g
AS_IF([test "$GCC" = yes], [
- CFLAGS_OPTIMIZE="-O2"
+ CFLAGS_OPTIMIZE=-O2
CFLAGS_WARNING="-Wall"
], [
CFLAGS_OPTIMIZE=-O
@@ -1256,6 +1256,16 @@ dnl AC_CHECK_TOOL(AR, ar)
CC_SEARCH_FLAGS=""
LD_SEARCH_FLAGS=""
;;
+ Haiku*)
+ LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
+ SHLIB_CFLAGS="-fPIC"
+ SHLIB_LD_LIBS='${LIBS}'
+ SHLIB_SUFFIX=".so"
+ SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
+ DL_OBJS="tclLoadDl.o"
+ DL_LIBS="-lroot"
+ AC_CHECK_LIB(network, inet_ntoa, [LIBS="$LIBS -lnetwork"])
+ ;;
HP-UX-*.11.*)
# Use updated header definitions where possible
AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, [Do we want to use the XOPEN network library?])