Streampunk / beamcoder

Node.js native bindings to FFmpeg.
GNU General Public License v3.0
392 stars 76 forks source link

Using pkg-config or similar for link dependencies #90

Open skadisch opened 2 years ago

skadisch commented 2 years ago

Currently the ffmpeg libraries are linked using e.g. "-lavcodec". This can lead to problems, depending on the compile options of ffmpeg. Using "<!(pkg-config --libs libavcodec)" would solve this issue (that we face in our setup), at least on Linux platforms.

Would it be legit to use pkg-config on non-Windows systems?

I would be happy to provide a PR.