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

engines/Makefile
engines/ccgost/Makefile

index e0242059b7d11323d8c55856ebd455258532e905..2fa9534401b1a1be2b811d08b7a15a835b78df05 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 64be962f39a7042b64a88e452c76ade17b48716e..dadb5230ecd4595923b3c58878d0330e06f23f18 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";; \