28e3ca351b
Bump everyone's REVISION. ok sthen@
66 lines
1.9 KiB
Plaintext
66 lines
1.9 KiB
Plaintext
Fix INSTSONAME. Same as Python 2.7
|
|
|
|
$OpenBSD: patch-configure_in,v 1.3 2013/03/31 21:35:26 bcallah Exp $
|
|
--- configure.in.orig Wed Apr 11 02:54:08 2012
|
|
+++ configure.in Sun Mar 31 16:59:35 2013
|
|
@@ -764,6 +764,9 @@ if test $enable_shared = "yes"; then
|
|
FreeBSD*)
|
|
SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
|
|
;;
|
|
+ OpenBSD*)
|
|
+ SOVERSION=${LIBpython3.2m_VERSION}
|
|
+ ;;
|
|
esac
|
|
INSTSONAME="$LDLIBRARY".$SOVERSION
|
|
if test "$with_pydebug" != yes
|
|
@@ -1780,7 +1783,7 @@ then
|
|
BSD/OS*/4*)
|
|
LDSHARED="gcc -shared"
|
|
LDCXXSHARED="g++ -shared";;
|
|
- FreeBSD*)
|
|
+ FreeBSD*|OpenBSD*)
|
|
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
|
|
then
|
|
LDSHARED='$(CC) -shared'
|
|
@@ -1788,22 +1791,6 @@ then
|
|
else
|
|
LDSHARED="ld -Bshareable"
|
|
fi;;
|
|
- OpenBSD*)
|
|
- if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
|
|
- then
|
|
- LDSHARED='$(CC) -shared $(CCSHARED)'
|
|
- LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
|
|
- else
|
|
- case `uname -r` in
|
|
- [[01]].* | 2.[[0-7]] | 2.[[0-7]].*)
|
|
- LDSHARED="ld -Bshareable ${LDFLAGS}"
|
|
- ;;
|
|
- *)
|
|
- LDSHARED='$(CC) -shared $(CCSHARED)'
|
|
- LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
|
|
- ;;
|
|
- esac
|
|
- fi;;
|
|
NetBSD*|DragonFly*)
|
|
LDSHARED='$(CC) -shared'
|
|
LDCXXSHARED='$(CXX) -shared';;
|
|
@@ -1953,9 +1940,14 @@ AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-U
|
|
|
|
# only check for sem_init if thread support is requested
|
|
if test "$with_threads" = "yes" -o -z "$with_threads"; then
|
|
- AC_SEARCH_LIBS(sem_init, pthread rt posix4) # 'Real Time' functions on Solaris
|
|
- # posix4 on Solaris 2.6
|
|
- # pthread (first!) on Linux
|
|
+ case $ac_sys_system/$ac_sys_release in
|
|
+ OpenBSD*)
|
|
+ LIBS="-pthread ${LIBS}" ;;
|
|
+ *)
|
|
+ AC_SEARCH_LIBS(sem_init, pthread rt posix4) ;; # 'Real Time' functions on Solaris
|
|
+ # posix4 on Solaris 2.6
|
|
+ # pthread (first!) on Linux
|
|
+ esac
|
|
fi
|
|
|
|
# check if we need libintl for locale functions
|