# The Perl documentation advises to obtain compiler and linker options from using the commands # "perl -MExtUtils::Embed -e ccopts" and "perl -MExtUtils::Embed -e ldopts" respectively. Of the # resulting output, it seemed meaningful to use the linker options # # Wl,-E -Wl,-rpath,/usr/lib/perl5/lib/5.8.8/x86_64-linux/CORE # # This may need to be revised as our understanding of using Perl in this way develops. # always: -rm -f $(TARGET_SO) $(JAVAH) -d . -classpath ../build com.dajeil.dais.webui.toolkit.DaisCliUtil $(CC) $(CFLAGS) -c -shared -fpic -pthread -D _REENTRANT $(INCLUDES) $(SOURCES) XSInit.c $(LD) -r XSInit.o /usr/lib/perl5/5.10.0/i686-linux/auto/DynaLoader/DynaLoader.a -o XSInit_r.o $(CC) -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.10.0/i686-linux/CORE -shared -fpic -pthread -D _REENTRANT $(LIBS) $(OBJECTS) XSInit_r.o -o $(TARGET_SO) cp $(TARGET_SO) ../dist #### #include #include #include #include /* The following code was optained by running the command "perl -MExtUtils::Embed -e xsinit -- -o perlxsi.c" and pasting the result into this file. */ EXTERN_C void boot_DynaLoader(pTHX_ CV* cv); EXTERN_C void XSInit(pTHX) { char *file = __FILE__; dXSUB_SYS; /* DynaLoader is a special case */ newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file); }