@@ -1,7 +1,7 @@ /* - * Copyright (c) 2008-2021 Jonathan Schleifer + * Copyright (c) 2008-2022 Jonathan Schleifer * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE.QPL included in @@ -44,15 +44,23 @@ OFURL *glueURL = [sourcesURL URLByAppendingPathComponent: @"amiga-glue.m"]; OFURL *funcArrayURL = [sourcesURL URLByAppendingPathComponent: @"amiga-funcarray.inc"]; OFXMLElement *library = [OFXMLElement elementWithStream: - [OFFile fileWithURL: libraryURL mode: @"r"]]; - OFFile *linkLib = [OFFile fileWithURL: linkLibURL mode: @"w"]; - OFFile *glueHeader = [OFFile fileWithURL: glueHeaderURL mode: @"w"]; - OFFile *glue = [OFFile fileWithURL: glueURL mode: @"w"]; - OFFile *funcArray = [OFFile fileWithURL: funcArrayURL mode: @"w"]; + [OFFile fileWithPath: libraryURL.fileSystemRepresentation + mode: @"r"]]; + OFFile *linkLib = + [OFFile fileWithPath: linkLibURL.fileSystemRepresentation + mode: @"w"]; + OFFile *glueHeader = + [OFFile fileWithPath: glueHeaderURL.fileSystemRepresentation + mode: @"w"]; + OFFile *glue = + [OFFile fileWithPath: glueURL.fileSystemRepresentation mode: @"w"]; + OFFile *funcArray = + [OFFile fileWithPath: funcArrayURL.fileSystemRepresentation + mode: @"w"]; LinkLibGenerator *linkLibGenerator = [[[LinkLibGenerator alloc] initWithLibrary: library implementation: linkLib] autorelease]; GlueGenerator *glueGenerator = [[[GlueGenerator alloc] initWithLibrary: library