Node:How to create dynamic linked foreign resources manually, Next:, Previous:How to customize splfr, Up:UNIX foreign language interface



How to Create Dynamic Linked Foreign Resources Manually

The only supported method for building foreign resources is by compiling and linking them with splfr. However, this is sometimes inconvenient, for instance when writing a Makefile for use with UNIX make. To figure out what needs to be done to build a foreign resource, you should build it once with splfr --verbose --keep ..., note what compiler and linker flags are used, and save away any generated files. You can then mimic the build commands used by splfr in your Makefile, or similar. You should repeat this process each time you upgrade SICStus, even if only the revision part of the SICStus version changes.