diff options
author | Guido van Rossum <guido@python.org> | 1997-12-18 23:55:32 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-12-18 23:55:32 (GMT) |
commit | 3c4bb802d08cbce3edd7ede3746debeb6b2418ca (patch) | |
tree | 1b8b92ed2328175ae92bbda2fba573941105fb77 /configure.in | |
parent | 8f4ceb168c34cc3a23d90f97b328697251c45585 (diff) | |
download | cpython-3c4bb802d08cbce3edd7ede3746debeb6b2418ca.zip cpython-3c4bb802d08cbce3edd7ede3746debeb6b2418ca.tar.gz cpython-3c4bb802d08cbce3edd7ede3746debeb6b2418ca.tar.bz2 |
Patch by Brian Gallew for DG/UX. I'm not quite sure what it does but
it seems harmless for other platforms. It plays tricks with the name
of the library used to link with. Apparently DG/UX really wants a
shared library to link with if it wants shared modules to use symbols
from the library. I'm not sure why this wasn't an issue with 1.4;
DG/UX seems to be the only platform where moving to a single library
made things harder!
BTW This adds a target to create libpython$(VERSION).so; however this
target is *only* for DG/UX.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 247f411..fb3f926 100644 --- a/configure.in +++ b/configure.in @@ -135,6 +135,8 @@ then case $ac_sys_system in AIX*) LINKCC="\$(srcdir)/makexp_aix python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";; + dgux*) + LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";; *) LINKCC="\$(PURIFY) \$(CC)";; esac fi @@ -146,6 +148,7 @@ AC_CHECK_PROGS(AR, ar aal, ar) AC_SUBST(INSTALL) AC_SUBST(INSTALL_PROGRAM) AC_SUBST(INSTALL_DATA) +AC_SUBST(REALLIBRARY) # Install just never works :-( if test -z "$INSTALL" then @@ -180,6 +183,8 @@ fi AC_AIX AC_MINIX +if test "$MACHDEP" != "dguxR4" +then AC_MSG_CHECKING(whether $CC accepts -Olimit 1500) AC_CACHE_VAL(ac_cv_olimit_ok, [ac_save_cc="$CC" @@ -193,6 +198,7 @@ if test $ac_cv_olimit_ok = yes; then OPT="$OPT -Olimit 1500" fi +AC_SUBST(DGUX_IS_BROKEN) AC_MSG_CHECKING(whether $CC accepts -OPT:Olimit=0) AC_CACHE_VAL(ac_cv_opt_olimit_ok, [ac_save_cc="$CC" @@ -205,6 +211,13 @@ AC_MSG_RESULT($ac_cv_opt_olimit_ok) if test $ac_cv_opt_olimit_ok = yes; then OPT="$OPT -OPT:Olimit=0" fi + REALLIBRARY='libpython$(VERSION).a' + DGUX_IS_BROKEN="# dgux rule not included" +else + REALLIBRARY='libpython$(VERSION).so' + OPT="$OPT -pic" + DGUX_IS_BROKEN="make $REALLIBRARY" +fi # check for ANSI or K&R ("traditional") preprocessor AC_MSG_CHECKING(for C preprocessor type) @@ -279,6 +292,7 @@ then DYNIX/ptx*) LDSHARED="ld -G";; next/*) LDSHARED='$(CC) $(CFLAGS) -nostdlib -r';; Linux*) LDSHARED="gcc -shared";; + dgux*) LDSHARED="ld -G";; FreeBSD*|NetBSD*) LDSHARED="ld -Bshareable";; SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; *) LDSHARED="ld";; |