It depends on which juce modules you add to your project. For example, if you look at juce_modules/juce_audio_devices/juce_audio_devices.h, you’ll find the linuxPackages line in the header of the module. The gtk+-x11 and webkit2gtk modules are needed by juce_gui_extra for the webview. However, if you’re app does not use the webview and you link with the --as-needed option, then your binary will not depend on gtk+-x11 and webkit2gtk and your customers will not need to install these packages.
I encounter the same problem. I don’t need the Webview, but I can’t make this “as-needed” flag work. I manually removed the dependencies in the Makefile, but this is of course no ideal, since the Projucer is likely to put them back.
Is there an option in the Projucer to put this “as-needed” flag? I (naively) added it to every flag I found in the Projucer, but nothing worked.