summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2001-09-05 10:44:19 +0000
committerJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2001-09-05 10:44:19 +0000
commit57f4e3da8893ec63f7e2b737841a1b90486a832b (patch)
treec6f32c27a6a1f9361cf9b40e413d2ed845319a4f
parent8e7637f935d81b3717232e902d3b4c15e84ff97d (diff)
add support for solaris/x86 and gcc with sun's ld
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3690 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rwxr-xr-xconfigure15
1 files changed, 9 insertions, 6 deletions
diff --git a/configure b/configure
index fa59d9ea4..c183c573b 100755
--- a/configure
+++ b/configure
@@ -382,19 +382,22 @@ if test $withsharedlibs = "yes"; then
mksharedlib="ld -shared -expect_unresolved '*' -o"
byteccrpath="-Wl,-rpath,"
shared_libraries_supported=true;;
- sparc-sun-solaris2*)
+ *-*-solaris2*)
case "$bytecc" in
gcc*)
- if sh ./solaris-ld; then :; else
sharedcccompopts="-fPIC"
+ if sh ./solaris-ld; then
+ mksharedlib="$bytecc -shared -o"
+ byteccrpath="-Wl,-R"
+ else
mksharedlib="$bytecc -shared -o"
bytecclinkopts="$bytecclinkopts -Wl,-E"
- byteccrpath="-Wl,-rpath,";
- shared_libraries_supported=true
- fi;;
+ byteccrpath="-Wl,-rpath,"
+ fi
+ shared_libraries_supported=true;;
*)
sharedcccompopts="-KPIC"
- byteccrpath="-Wl,-R,"
+ byteccrpath="-Wl,-R"
mksharedlib="/usr/ccs/bin/ld -G -o"
shared_libraries_supported=true;;
esac;;