[pure-lang-svn] SF.net SVN: pure-lang: [322] pure/trunk/examples/sort.c
Status: Beta
Brought to you by:
agraef
From: <ag...@us...> - 2008-06-27 18:44:56
|
Revision: 322 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=322&view=rev Author: agraef Date: 2008-06-27 11:44:55 -0700 (Fri, 27 Jun 2008) Log Message: ----------- Comment change. Modified Paths: -------------- pure/trunk/examples/sort.c Modified: pure/trunk/examples/sort.c =================================================================== --- pure/trunk/examples/sort.c 2008-06-27 10:28:24 UTC (rev 321) +++ pure/trunk/examples/sort.c 2008-06-27 18:44:55 UTC (rev 322) @@ -10,11 +10,12 @@ called from Pure which in turn calls other Pure functions, and takes generic pure_expr* values as arguments and returns them as results. */ -/* To compile (Linux): 'gcc -shared -o sort.so sort.c -lpure'. This will - create a dynamic library ready to be loaded by the Pure interpreter. - (Replace .so with .dylib or .dll on OSX and Windows, respectively. On OSX, - you also have to replace -shared with -dynamiclib. On Windows you might - wish to add the '-Wl,--enable-auto-import' linker option.) +/* To compile (Linux): 'gcc -shared -o sort.so sort.c -lpure' (add -fPIC on 64 + bit systems). This will create a dynamic library ready to be loaded by the + Pure interpreter. (On OSX and Windows, replace .so with .dylib or .dll, + respectively. On OSX, you also have to replace -shared with -dynamiclib. + On Windows you might wish to add the '-Wl,--enable-auto-import' linker + option.) I suggest that you also set up your LD_LIBRARY_PATH environment variable (DYLD_LIBRARY_PATH on OSX) so that the dynamic loader finds sort.so without This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |