cubicdaiya / ngx_small_light

Dynamic Image Transformation Module For nginx.
Other
472 stars 80 forks source link

dynamic module build, about nginx object link #76

Closed shmilee closed 7 years ago

shmilee commented 8 years ago

For version 0.9.0:

[$] ldd nginx
    linux-vdso.so.1 (0x00007ffcc41fd000)
    libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f899bf8b000)
.......
    libMagickWand-6.Q16HDRI.so.2 => /usr/lib/libMagickWand-6.Q16HDRI.so.2 (0x00007fd33dd8d000)
    libMagickCore-6.Q16HDRI.so.2 => /usr/lib/libMagickCore-6.Q16HDRI.so.2 (0x00007fd33d8b2000)
......
    libpng16.so.16 => /usr/lib/libpng16.so.16 (0x00007fd33a846000)

[$] ldd /usr/lib/nginx/modules/ngx_http_small_light_module.so
    libMagickWand-6.Q16HDRI.so.2 => /usr/lib/libMagickWand-6.Q16HDRI.so.2 (0x00007fd33dd8d000)
    libMagickCore-6.Q16HDRI.so.2 => /usr/lib/libMagickCore-6.Q16HDRI.so.2 (0x00007fd33d8b2000)
    liblcms2.so.2 => /usr/lib/liblcms2.so.2 (0x00007fd33d2b8000)
    liblqr-1.so.0 => /usr/lib/liblqr-1.so.0 (0x00007fd33d0a9000)
    libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007fd33cd94000)
    libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007fd33cb50000)
    libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007fd33c893000)
    libXext.so.6 => /usr/lib/libXext.so.6 (0x00007fd33c681000)
    libXt.so.6 => /usr/lib/libXt.so.6 (0x00007fd33c418000)
    liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007fd33c1f2000)
    libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x00007fd33bfe0000)
    libz.so.1 => /usr/lib/libz.so.1 (0x00007fd33bdca000)
    libltdl.so.7 => /usr/lib/libltdl.so.7 (0x00007fd33bbc0000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fd33b881000)
    libgomp.so.1 => /usr/lib/libgomp.so.1 (0x00007fd33b653000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fd33b136000)
    libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fd33af19000)
    libpcre.so.1 => /usr/lib/libpcre.so.1 (0x00007fd33aca6000)
    libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007fd33aa7c000)
    libpng16.so.16 => /usr/lib/libpng16.so.16 (0x00007fd33a846000)
    libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0x00007fd33a5e3000)
    libSM.so.6 => /usr/lib/libSM.so.6 (0x00007fd33a3db000)
    libICE.so.6 => /usr/lib/libICE.so.6 (0x00007fd33a1be000)
    libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fd339d91000)
    libgraphite2.so.3 => /usr/lib/libgraphite2.so.3 (0x00007fd339b63000)
    libuuid.so.1 => /usr/lib/libuuid.so.1 (0x00007fd33995e000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fd33975a000)
    libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fd339554000)

So, I think we should move https://github.com/cubicdaiya/ngx_small_light/blob/v0.9.0/config.in#L31 to https://github.com/cubicdaiya/ngx_small_light/blob/v0.9.0/config.in#L72. Is it right?