On 10/14/2013 03:50 AM, Erik Schnetter wrote: > I noticed you added "-shared" as linker flag. This does not work on my > system (OS X) -- the linker does not understand "shared". > > Why is -shared necessary?
To create a library that can be loaded dynamically via dlopen() to the process to call the workgroup functions from the CPU drivers. It requires at least PIC. http://en.wikipedia.org/wiki/Dynamic_loading > I'm trying to find out whether I need to look for the equivalent flag on OS > X, or whether I should add a conditional for OS X to simply not use -shared > there. A portable way here might be to use the libtool to create the plugin module instead of calling the linker directly: http://www.gnu.org/software/libtool/manual/libtool.html#Building-modules -- Pekka ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk _______________________________________________ pocl-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pocl-devel
