diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-11-22 16:04:55 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-11-22 16:04:55 +0000 |
commit | 84ba643aebf1c3f60797d0ef6e9b64936d4e4ddf (patch) | |
tree | ae09d8c724a885db5a08c8d18b7d67345ae1c0ac /src/lib/projectM/cwrapper | |
parent | eb1e5ab2eac7f51438cb152210ad56439635a052 (diff) | |
download | usdx-84ba643aebf1c3f60797d0ef6e9b64936d4e4ddf.tar.gz usdx-84ba643aebf1c3f60797d0ef6e9b64936d4e4ddf.tar.xz usdx-84ba643aebf1c3f60797d0ef6e9b64936d4e4ddf.zip |
fix undefined __dso_handle error message when compiling with projectm >= 2.01
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2746 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/lib/projectM/cwrapper')
-rw-r--r-- | src/lib/projectM/cwrapper/projectM-cwrapper.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/projectM/cwrapper/projectM-cwrapper.cpp b/src/lib/projectM/cwrapper/projectM-cwrapper.cpp index ebf43554..0266c755 100644 --- a/src/lib/projectM/cwrapper/projectM-cwrapper.cpp +++ b/src/lib/projectM/cwrapper/projectM-cwrapper.cpp @@ -8,6 +8,11 @@ #define PM_PCM(pm) (PM_CLASS(pm)->pcm) #endif +// this is needed if ld is used instead of gcc to link this static +// library (which is the case if the fpc pascal compiler is used). +// Otherwise compilation fails with "undefined reference to __dso_handle" +void *__dso_handle = 0; + projectM_ptr projectM_create1(char* config_file) { return projectM_ptr(new projectM(config_file)); |