diff options
author | dgp <dgp@users.sourceforge.net> | 2017-05-18 12:18:12 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2017-05-18 12:18:12 (GMT) |
commit | 107e2400ee9876bbfd0b4712307f642290498194 (patch) | |
tree | 042cb1fc59586b587035268c00d8e5a307b0471e | |
parent | 6409149a9a89dbed7c247ed2b0e7e4317277da4a (diff) | |
download | tk-107e2400ee9876bbfd0b4712307f642290498194.zip tk-107e2400ee9876bbfd0b4712307f642290498194.tar.gz tk-107e2400ee9876bbfd0b4712307f642290498194.tar.bz2 |
autoconf-2.59
-rwxr-xr-x | unix/configure | 49 |
1 files changed, 13 insertions, 36 deletions
diff --git a/unix/configure b/unix/configure index 565f915..442004d 100755 --- a/unix/configure +++ b/unix/configure @@ -5355,47 +5355,24 @@ fi OpenBSD-*) arch=`arch -s` case "$arch" in - vax) - # Equivalent using configure option --disable-load - # Step 4 will set the necessary variables - DL_OBJS="" - SHLIB_LD_LIBS="" - LDFLAGS="" + alpha|sparc64) + SHLIB_CFLAGS="-fPIC" ;; *) - case "$arch" in - alpha|sparc|sparc64) - SHLIB_CFLAGS="-fPIC" - ;; - *) - SHLIB_CFLAGS="-fpic" - ;; - esac - SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' - SHLIB_SUFFIX=".so" - DL_OBJS="tclLoadDl.o" - DL_LIBS="" - if test $doRpath = yes; then + SHLIB_CFLAGS="-fpic" + ;; + esac + SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' + SHLIB_SUFFIX=".so" + if test $doRpath = yes; then - CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' + CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' fi - LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} - SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' - LDFLAGS="-Wl,-export-dynamic" - ;; - esac - case "$arch" in - vax) - CFLAGS_OPTIMIZE="-O1" - ;; - sh) - CFLAGS_OPTIMIZE="-O0" - ;; - *) - CFLAGS_OPTIMIZE="-O2" - ;; - esac + LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} + SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}' + LDFLAGS="-Wl,-export-dynamic" + CFLAGS_OPTIMIZE="-O2" if test "${TCL_THREADS}" = "1"; then # On OpenBSD: Compile with -pthread |