Install SSL.bundle into versioned library directory so that you can have multiple gnustep-base installed, each with its own SSL bundle

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24889 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2007-03-17 16:56:23 +00:00
parent 7ad9d61fab
commit 2862e46497
3 changed files with 15 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2007-03-17 Nicola Pero <nicola.pero@meta-innovation.com>
* SSL/GNUmakefile: Install the SSL bundle in the versioned
gnustep-base resource directory.
* Source/NSFileHandle.m ([+sslClass]): Load the SSL bundle from
the versioned gnustep-base resource directory.
2007-03-17 Nicola Pero <nicola.pero@meta-innovation.com>
* Source/Makefile.postamble (before-uninstall): Remove GSConfig.h.

View file

@ -52,6 +52,11 @@ ifeq ($(HAVE_OPENSSL), yes)
# The bundles to be compiled
BUNDLE_NAME=SSL
# Interface version changes with each minor release
include ../Version
libgnustep-base_INTERFACE_VERSION=$(MAJOR_VERSION).$(MINOR_VERSION)
SSL_INSTALL_DIR = $(GNUSTEP_LIBRARY)/Libraries/gnustep-base/Versions/$(libgnustep-base_INTERFACE_VERSION)/Resources/
# Additional search directories for linking
SSL_LIB_DIRS += -L$(GNUSTEP_OBJ_DIR)

View file

@ -710,13 +710,12 @@ NSString * const NSFileHandleOperationException
{
if (NSFileHandle_ssl_class == 0)
{
NSString *path;
NSBundle *bundle;
NSString *path;
path = [NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,
NSAllDomainsMask, NO) lastObject];
path = [path stringByAppendingPathComponent: @"Bundles"];
path = [[NSBundle bundleForClass: [NSObject class]] bundlePath];
path = [path stringByAppendingPathComponent: @"SSL.bundle"];
bundle = [NSBundle bundleWithPath: path];
NSFileHandle_ssl_class = [bundle principalClass];
if (NSFileHandle_ssl_class == 0 && bundle != nil)