diff --git a/panda/src/downloadertools/apply_patch.cxx b/panda/src/downloadertools/apply_patch.cxx index e741e00fcf..8e66e471d3 100644 --- a/panda/src/downloadertools/apply_patch.cxx +++ b/panda/src/downloadertools/apply_patch.cxx @@ -13,6 +13,7 @@ //////////////////////////////////////////////////////////////////// #include "pandabase.h" +#include "pystub.h" #include "panda_getopt.h" #include "preprocess_argv.h" #include "patchfile.h" @@ -20,6 +21,9 @@ int main(int argc, char **argv) { + // A call to pystub() to force libpystub.so to be linked in. + pystub(); + preprocess_argv(argc, argv); if (argc < 3) { diff --git a/panda/src/downloadertools/build_patch.cxx b/panda/src/downloadertools/build_patch.cxx index a36caf99c1..c1789c97a1 100644 --- a/panda/src/downloadertools/build_patch.cxx +++ b/panda/src/downloadertools/build_patch.cxx @@ -13,6 +13,7 @@ //////////////////////////////////////////////////////////////////// #include "pandabase.h" +#include "pystub.h" #include "panda_getopt.h" #include "preprocess_argv.h" #include "patchfile.h" @@ -53,6 +54,9 @@ help() { int main(int argc, char **argv) { + // A call to pystub() to force libpystub.so to be linked in. + pystub(); + Filename patch_file; bool complete_file = false; int footprint_length = 0; diff --git a/panda/src/downloadertools/check_adler.cxx b/panda/src/downloadertools/check_adler.cxx index f17d279a79..04e058b5dd 100644 --- a/panda/src/downloadertools/check_adler.cxx +++ b/panda/src/downloadertools/check_adler.cxx @@ -13,9 +13,13 @@ //////////////////////////////////////////////////////////////////// #include "download_utils.h" +#include "pystub.h" int main(int argc, char *argv[]) { + // A call to pystub() to force libpystub.so to be linked in. + pystub(); + if (argc < 2) { cerr << "Usage: check_adler " << endl; return 1; diff --git a/panda/src/downloadertools/check_crc.cxx b/panda/src/downloadertools/check_crc.cxx index df5ab1bb9c..9105e38a76 100644 --- a/panda/src/downloadertools/check_crc.cxx +++ b/panda/src/downloadertools/check_crc.cxx @@ -13,9 +13,13 @@ //////////////////////////////////////////////////////////////////// #include "download_utils.h" +#include "pystub.h" int main(int argc, char *argv[]) { + // A call to pystub() to force libpystub.so to be linked in. + pystub(); + if (argc < 2) { cerr << "Usage: check_crc " << endl; return 1; diff --git a/panda/src/downloadertools/check_md5.cxx b/panda/src/downloadertools/check_md5.cxx index 1bbc5855da..35f365df54 100644 --- a/panda/src/downloadertools/check_md5.cxx +++ b/panda/src/downloadertools/check_md5.cxx @@ -13,6 +13,7 @@ //////////////////////////////////////////////////////////////////// #include "pandabase.h" +#include "pystub.h" #include "hashVal.h" #include "filename.h" #include "panda_getopt.h" @@ -67,6 +68,9 @@ output_hash(const string &filename, const HashVal &hash) { int main(int argc, char **argv) { + // A call to pystub() to force libpystub.so to be linked in. + pystub(); + extern char *optarg; extern int optind; const char *optstr = "i:db:qh"; diff --git a/panda/src/downloadertools/multify.cxx b/panda/src/downloadertools/multify.cxx index 82aee54ab4..54482e4964 100644 --- a/panda/src/downloadertools/multify.cxx +++ b/panda/src/downloadertools/multify.cxx @@ -13,6 +13,7 @@ //////////////////////////////////////////////////////////////////// #include "pandabase.h" +#include "pystub.h" #include "panda_getopt.h" #include "preprocess_argv.h" #include "multifile.h" @@ -749,6 +750,9 @@ tokenize_extensions(const string &str, pset &extensions) { int main(int argc, char **argv) { + // A call to pystub() to force libpystub.so to be linked in. + pystub(); + preprocess_argv(argc, argv); if (argc < 2) { usage(); diff --git a/panda/src/downloadertools/pdecrypt.cxx b/panda/src/downloadertools/pdecrypt.cxx index 1c91407a01..9da4a3b252 100644 --- a/panda/src/downloadertools/pdecrypt.cxx +++ b/panda/src/downloadertools/pdecrypt.cxx @@ -12,6 +12,7 @@ // //////////////////////////////////////////////////////////////////// +#include "pystub.h" #include "filename.h" #include "encrypt_string.h" #include "pnotify.h" @@ -46,6 +47,9 @@ usage() { int main(int argc, char **argv) { + // A call to pystub() to force libpystub.so to be linked in. + pystub(); + extern char *optarg; extern int optind; const char *optstr = "o:p:h"; diff --git a/panda/src/downloadertools/pencrypt.cxx b/panda/src/downloadertools/pencrypt.cxx index 2e915551ee..59b969b7c1 100644 --- a/panda/src/downloadertools/pencrypt.cxx +++ b/panda/src/downloadertools/pencrypt.cxx @@ -12,6 +12,7 @@ // //////////////////////////////////////////////////////////////////// +#include "pystub.h" #include "filename.h" #include "encrypt_string.h" #include "pnotify.h" diff --git a/panda/src/downloadertools/punzip.cxx b/panda/src/downloadertools/punzip.cxx index 486d58be67..381608d1f5 100644 --- a/panda/src/downloadertools/punzip.cxx +++ b/panda/src/downloadertools/punzip.cxx @@ -12,6 +12,7 @@ // //////////////////////////////////////////////////////////////////// +#include "pystub.h" #include "filename.h" #include "compress_string.h" #include "pnotify.h" @@ -33,6 +34,9 @@ usage() { int main(int argc, char **argv) { + // A call to pystub() to force libpystub.so to be linked in. + pystub(); + extern char *optarg; extern int optind; const char *optstr = "o:ch"; diff --git a/panda/src/downloadertools/pzip.cxx b/panda/src/downloadertools/pzip.cxx index 45a27f9d52..07332af600 100644 --- a/panda/src/downloadertools/pzip.cxx +++ b/panda/src/downloadertools/pzip.cxx @@ -12,6 +12,7 @@ // //////////////////////////////////////////////////////////////////// +#include "pystub.h" #include "filename.h" #include "compress_string.h" #include "pnotify.h" @@ -57,6 +58,9 @@ usage() { int main(int argc, char **argv) { + // A call to pystub() to force libpystub.so to be linked in. + pystub(); + extern char *optarg; extern int optind; const char *optstr = "o:c123456789h"; diff --git a/panda/src/downloadertools/show_ddb.cxx b/panda/src/downloadertools/show_ddb.cxx index 1146aad066..92095738cd 100644 --- a/panda/src/downloadertools/show_ddb.cxx +++ b/panda/src/downloadertools/show_ddb.cxx @@ -13,11 +13,15 @@ //////////////////////////////////////////////////////////////////// #include "pandabase.h" +#include "pystub.h" #include "downloadDb.h" #include "filename.h" int main(int argc, char *argv[]) { + // A call to pystub() to force libpystub.so to be linked in. + pystub(); + if (argc != 3) { cerr << "Usage: show_ddb server.ddb client.ddb\n"; return 1; diff --git a/panda/src/testbed/pgrid.cxx b/panda/src/testbed/pgrid.cxx index 422de94766..a8c7da2475 100644 --- a/panda/src/testbed/pgrid.cxx +++ b/panda/src/testbed/pgrid.cxx @@ -13,6 +13,7 @@ //////////////////////////////////////////////////////////////////// #include "pandaFramework.h" +#include "pystub.h" #include "pandaNode.h" #include "transformState.h" #include "clockObject.h" @@ -384,6 +385,9 @@ load_gridded_models(WindowFramework *window, int main(int argc, char **argv) { + // A call to pystub() to force libpystub.so to be linked in. + pystub(); + preprocess_argv(argc, argv); PandaFramework framework; framework.open_framework(argc, argv); diff --git a/panda/src/testbed/pview.cxx b/panda/src/testbed/pview.cxx index 312adcda6f..5d5b9ba113 100644 --- a/panda/src/testbed/pview.cxx +++ b/panda/src/testbed/pview.cxx @@ -14,6 +14,7 @@ #include "pandaFramework.h" #include "pandaSystem.h" +#include "pystub.h" #include "textNode.h" #include "configVariableBool.h" #include "texturePool.h" @@ -225,6 +226,9 @@ report_version() { int main(int argc, char **argv) { + // A call to pystub() to force libpystub.so to be linked in. + pystub(); + preprocess_argv(argc, argv); framework.open_framework(argc, argv); framework.set_window_title("Panda Viewer");