Am Dienstag 24 Oktober 2023 um 18:05:34 +0000, schrieb Victor Lazzarini 3,3K: > Ok, it's not a bundle, that's a different type of dynamic lib (we don't use). So > > 1. You need to find where -bundle is being added > > 2. You need to use -dynamiclib > > 3. the plugin libs need to have the extension .dylib in their names. > > So here's a command line example for building a Csound plugin (with no dependencies) > > cc -dynamiclib mysrc.c -o myplug.dylib -I > > This command compiles and links the opcode. If you are using object files then you just replace the .c by a .o file. > > Basically the solution is to fix the makefiles so you use -dynamiclib to build the libraries. Hi! I wrote pkgsrc-users@NetBSD and tech-pkg@NetBSD.org, describing the problem; I'm partially quoting the second answer here (the first answer was, that "-bundle" gets added via pkgsrc's cmake - without pkgsrc csound compiles normally and the results are the expected .dylibs): > Another possibility to consider is that pkgsrc is right and upstream is wrong. > Perhaps it actually *should* generate .so files rather than .dylib for > loadable modules? It might be easier to patch the code to look for .so, > rather than patch the build to generate .dylib. I'm not saying this is the > case, just that I would investigate it. -- https://mail-index.netbsd.org/pkgsrc-users/2023/10/25/msg038344.html I'm searching high and low, to find proof for the needed compilation of .dylibs with "-dynamiclib". But in the meantime, I'd be happy about considering the possibility that pkgsrc *could* be right - if not, I'd be thankful about a precise explanation, why .dylibs are needed on Darwin, instead of a .so... I'll forward the answer to @NetBSD.org. This article suggests, that .so can be used (in special cases): https://stackoverflow.com/questions/2339679/what-are-the-differences-between-so-and-dylib-on-macos It's not clear for me, as a casual users, when .so and when .dylibs should be used... Thank you for your time! Kind regards. Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here