diff options
author | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2001-09-05 10:44:19 +0000 |
---|---|---|
committer | Jacques Garrigue <garrigue at math.nagoya-u.ac.jp> | 2001-09-05 10:44:19 +0000 |
commit | 57f4e3da8893ec63f7e2b737841a1b90486a832b (patch) | |
tree | c6f32c27a6a1f9361cf9b40e413d2ed845319a4f | |
parent | 8e7637f935d81b3717232e902d3b4c15e84ff97d (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-x | configure | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -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;; |