summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorstwo <stwo>2013-07-07 01:04:41 (GMT)
committerstwo <stwo>2013-07-07 01:04:41 (GMT)
commit6c95146b6eb780a6a03975c66b368fe59f902efa (patch)
treeeb8f25173e263990f6041879cf451feb33819a6c /unix/tcl.m4
parent1993f3bd9366931d6bcd1f374b8851435cb725c0 (diff)
downloadtk-6c95146b6eb780a6a03975c66b368fe59f902efa.zip
tk-6c95146b6eb780a6a03975c66b368fe59f902efa.tar.gz
tk-6c95146b6eb780a6a03975c66b368fe59f902efa.tar.bz2
OpenBSD/m88k is now elf. Remove unneeded elf check.
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m415
1 files changed, 4 insertions, 11 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index bac5ebe..475b07c 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1484,11 +1484,12 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
OpenBSD-*)
arch=`arch -s`
case "$arch" in
- m88k|vax)
+ vax)
# Equivalent using configure option --disable-load
# Step 4 will set the necessary variables
DL_OBJS=""
SHLIB_LD_LIBS=""
+ LDFLAGS=""
;;
*)
SHLIB_CFLAGS="-fPIC"
@@ -1500,10 +1501,11 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'])
LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}'
+ LDFLAGS="-Wl,-export-dynamic"
;;
esac
case "$arch" in
- m88k|vax)
+ vax)
CFLAGS_OPTIMIZE="-O1"
;;
sh)
@@ -1513,15 +1515,6 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
CFLAGS_OPTIMIZE="-O2"
;;
esac
- AC_CACHE_CHECK([for ELF], tcl_cv_ld_elf, [
- AC_EGREP_CPP(yes, [
-#ifdef __ELF__
- yes
-#endif
- ], tcl_cv_ld_elf=yes, tcl_cv_ld_elf=no)])
- AS_IF([test $tcl_cv_ld_elf = yes], [
- LDFLAGS=-Wl,-export-dynamic
- ], [LDFLAGS=""])
AS_IF([test "${TCL_THREADS}" = "1"], [
# On OpenBSD: Compile with -pthread
# Don't link with -lpthread