> [...] Doing
>
> `$ ldd freetype-demos/bin/.libs/ftbench`
>
> Reports:
>
> `CANNOT LINK EXECUTABLE "linker64": library "libpng16.so.16" not
> found: needed by main executable`
>
> From what I understand it is because the libpng library is
> dynamically linked but isn't available in the environment.
>
> I want to know if there is any way to build these executables
> statically so that they can work in a standalone manner and not be
> dependent on the environment.

I don't know this environment, but I guess the 'hard way' works:
Compile 'libpng' as a static library and make sure that
`libpng16.so.16` isn't found during compilation; this should enforce
the compiler to take the static library instead.


    Werner

Reply via email to