Help for this page

Select Code to Download


  1. or download this
    # The Perl documentation advises to obtain compiler and linker options
    + from using the commands
    # "perl -MExtUtils::Embed -e ccopts" and "perl -MExtUtils::Embed -e ld
    +opts" respectively.  Of the
    ...
            $(LD) -r  XSInit.o /usr/lib/perl5/5.10.0/i686-linux/auto/DynaL
    +oader/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
    
  2. or download this
    #include <jni.h>
    #include <EXTERN.h>
    ...
            /* DynaLoader is a special case */
            newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file);
    }