2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 05:42:30 +00:00

changed configuration for shared linking

[SVN r8398]
This commit is contained in:
Ullrich Köthe
2000-12-06 22:59:49 +00:00
parent e5ec0d0c71
commit 56287c49ca
2 changed files with 8 additions and 8 deletions

View File

@@ -917,21 +917,21 @@ fi
cxx_tmp="dummy $CXX dummy"
if test "$GXX" = "yes"; then # g++
shared_cxx_linker="$(CXX) -shared"
shared_cxx_linker="g++ -shared"
position_independent_code_flag="-fPIC"
elif test "$cxx_tmp2" = "como"; then # Comeau C++
shared_cxx_linker="como-dyn-link"
position_independent_code_flag="--pic"
elif test "$cxx_tmp2" = "cxx"; then # Compaq C++
case "$target" in
*dec*) shared_cxx_linker="$(CXX) -shared -expect_unresolved '*'"
*dec*) shared_cxx_linker="cxx -shared -expect_unresolved '*'"
position_independent_code_flag="";;
esac
elif test "$cxx_tmp2" = "CC"; then # native compilers
case "$target" in
*solaris*) shared_cxx_linker="$(CXX) -G"
*solaris*) shared_cxx_linker="CC -G"
position_independent_code_flag="-pic";;
*irix*) shared_cxx_linker="$(CXX) -shared"
*irix*) shared_cxx_linker="CC -shared"
position_independent_code_flag="";;
*hpux*) shared_cxx_linker="ld -b"
position_independent_code_flag="+z";;

View File

@@ -29,21 +29,21 @@ dnl AC_REQUIRE([AC_PROG_CC])
cxx_tmp="dummy $CXX dummy"
if test "$GXX" = "yes"; then # g++
shared_cxx_linker="$(CXX) -shared"
shared_cxx_linker="g++ -shared"
position_independent_code_flag="-fPIC"
elif test "$cxx_tmp[2]" = "como"; then # Comeau C++
shared_cxx_linker="como-dyn-link"
position_independent_code_flag="--pic"
elif test "$cxx_tmp[2]" = "cxx"; then # Compaq C++
case "$target" in
*dec*) shared_cxx_linker="$(CXX) -shared -expect_unresolved '*'"
*dec*) shared_cxx_linker="cxx -shared -expect_unresolved '*'"
position_independent_code_flag="";;
esac
elif test "$cxx_tmp[2]" = "CC"; then # native compilers
case "$target" in
*solaris*) shared_cxx_linker="$(CXX) -G"
*solaris*) shared_cxx_linker="CC -G"
position_independent_code_flag="-pic";;
*irix*) shared_cxx_linker="$(CXX) -shared"
*irix*) shared_cxx_linker="CC -shared"
position_independent_code_flag="";;
*hpux*) shared_cxx_linker="ld -b"
position_independent_code_flag="+z";;