engine/Makefile: harmonize engine install rule for .dylib extension on MacOS X.
authorAndy Polyakov <appro@openssl.org>
Tue, 24 Aug 2010 21:45:41 +0000 (21:45 +0000)
committerAndy Polyakov <appro@openssl.org>
Tue, 24 Aug 2010 21:45:41 +0000 (21:45 +0000)
PR: 2319

engines/Makefile
engines/ccgost/Makefile

index e024205..2fa9534 100644 (file)
@@ -114,7 +114,7 @@ install:
                          if [ "$(PLATFORM)" != "Cygwin" ]; then \
                                case "$(CFLAGS)" in \
                                *DSO_BEOS*)     sfx=".so";;     \
-                               *DSO_DLFCN*)    sfx=".so";;     \
+                               *DSO_DLFCN*)    sfx=`expr "$(SHLIB_EXT)" : '.*\(\.[a-z][a-z]*\)' \| ".so"`;;    \
                                *DSO_DL*)       sfx=".sl";;     \
                                *DSO_WIN32*)    sfx="eay32.dll"; pfx=;; \
                                *)              sfx=".bad";;    \
index 64be962..dadb523 100644 (file)
@@ -48,7 +48,7 @@ install:
                if [ "$(PLATFORM)" != "Cygwin" ]; then \
                        case "$(CFLAGS)" in \
                        *DSO_BEOS*) sfx=".so";; \
-                       *DSO_DLFCN*) sfx=".so";; \
+                       *DSO_DLFCN*) sfx=`expr "$(SHLIB_EXT)" : '.*\(\.[a-z][a-z]*\)' \| ".so"`;; \
                        *DSO_DL*) sfx=".sl";; \
                        *DSO_WIN32*) sfx="eay32.dll"; pfx=;; \
                        *) sfx=".bad";; \