Better configuration, gui will compile without DPS

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2954 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 1998-09-03 14:35:49 +00:00
parent 1572c3e3da
commit b8fca3dc09
5 changed files with 12 additions and 2 deletions

View file

@ -280,6 +280,10 @@ _bundle_load_callback(Class theClass, Category *theCategory)
s = [path lastPathComponent];
if ([s isEqual: gnustep_target_cpu])
path = [path stringByDeletingLastPathComponent];
/* object dir */
s = [path lastPathComponent];
if ([s hasSuffix: @"_obj"])
path = [path stringByDeletingLastPathComponent];
NSDebugLLog(@"NSBundle", @"(NSBundle): Found main in %@\n", path);
/* We do alloc and init separately so initWithPath: knows