On my development machine, I have /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20; on a fresh install of Ubuntu 14.04 I have /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19. I'm taking my first baby steps into creating a DEB file to install my application, and it works to install the app itself, now I would like my DEB file to also install the necessary shared libraries (like libstdc++.so.6.0.20).
The library is installed from package libstdc++6, but the default repositories don't have the right version, I have to add the ppa:ubuntu-toolchain-r/test repository to get the right version.
It seems like I need to add the line
Depends: libstdc++6:amd64 (= 4.9.2-0ubuntu1~14.04)
to my DEBIAN/control file, but it seems like that can't work without also telling it about the repository, and I can't figure out how to do that.
Or am I barking up the completely wrong tree? I guess I'm assuming that if I correctly set up a dependency on libstdc++6, it will go out to the Internet and download it for me, as part of my DEB installer?
p.s. My DEB installer will only be used in-house, it will be copied onto the target machine from a USB stick or similar, it will never be downloaded from the Internet ...