summaryrefslogtreecommitdiffstats
path: root/Makefile.shared
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2005-10-25 23:58:59 +0200
committerAndy Polyakov <appro@openssl.org>2005-10-25 23:58:59 +0200
commit755c5b3330a00ce1e546fd43adf5572a4ae07d61 (patch)
treeb088712361c6c3f399c7522016828557f128ded5 /Makefile.shared
parent+20% SHA512 performance improvement on x86. (diff)
downloadopenssl-755c5b3330a00ce1e546fd43adf5572a4ae07d61.tar.xz
openssl-755c5b3330a00ce1e546fd43adf5572a4ae07d61.zip
Fix install problems on MacOS X and HP-UX.
PR: 1218,1185
Diffstat (limited to 'Makefile.shared')
-rw-r--r--Makefile.shared8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.shared b/Makefile.shared
index 1b14dd1450..acee25cfea 100644
--- a/Makefile.shared
+++ b/Makefile.shared
@@ -196,10 +196,14 @@ link_app.bsd:
fi; $(LINK_APP)
# For Darwin AKA Mac OS/X (dyld)
+# link_o.darwin produces .so, because we let it use dso_dlfcn module,
+# which has .so extension hard-coded. One can argue that one should
+# develop special dso module for MacOS X. At least manual encourages
+# to use native NSModule(3) API and refers to dlfcn as termporary hack.
link_o.darwin:
@ $(CALC_VERSIONS); \
SHLIB=lib$(LIBNAME); \
- SHLIB_SUFFIX=.dylib; \
+ SHLIB_SUFFIX=.so; \
ALLSYMSFLAGS='-all_load'; \
NOALLSYMSFLAGS=''; \
SHAREDFLAGS="$(CFLAGS) $(SHARED_LDFLAGS)"; \
@@ -450,7 +454,7 @@ link_o.hpux:
@if ${DETECT_GNU_LD}; then $(DO_GNU_SO); else \
$(CALC_VERSIONS); \
SHLIB=lib$(LIBNAME).sl; \
- expr $(PLATFORM) : '.*ia64' > /dev/null && SHLIB=lib$(LIBNAME).so; \
+ expr "$(CFLAGS)" : 'DSO_DLFCN' > /dev/null && SHLIB=lib$(LIBNAME).so; \
SHLIB_SUFFIX=; \
ALLSYMSFLAGS='-Wl,-Fl'; \
NOALLSYMSFLAGS=''; \