diff options
author | waker <wakeroid@gmail.com> | 2010-10-23 18:22:38 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2010-10-23 18:22:38 +0200 |
commit | aa7aaa4c2be4a27d858b582c338ba14a2aa72732 (patch) | |
tree | a2d63778b34c46a3208a30e8d95dfc01a586544b /plugins/adplug | |
parent | 47f411b6964dc2f0af7d0f35ac0016204f1d9e96 (diff) |
portable build WIP
Diffstat (limited to 'plugins/adplug')
-rw-r--r-- | plugins/adplug/Makefile.am | 8 | ||||
-rw-r--r-- | plugins/adplug/adplug-db.cpp | 12 |
2 files changed, 16 insertions, 4 deletions
diff --git a/plugins/adplug/Makefile.am b/plugins/adplug/Makefile.am index a75f38b5..94fdd7d9 100644 --- a/plugins/adplug/Makefile.am +++ b/plugins/adplug/Makefile.am @@ -5,11 +5,12 @@ adlibdir = $(libdir)/$(PACKAGE) pkglib_LTLIBRARIES = adplug.la AM_CFLAGS = $(CFLAGS) -std=c99 -I$(adplugpath)/adplug -I$(adplugpath)/libbinio +adplug_la_LDFLAGS = -module -nostdlib -lsupc++ -AM_CPPFLAGS = $(CXXFLAGS) -Dstricmp=strcasecmp -DVERSION=\"2.1\" -I$(adplugpath)/adplug -I$(adplugpath)/libbinio +AM_CPPFLAGS = $(CXXFLAGS) -Dstricmp=strcasecmp -DVERSION=\"2.1\" -I$(adplugpath)/adplug -I$(adplugpath)/libbinio -fno-exceptions -fno-rtti -nostdlib -fno-unwind-tables -adplug_la_SOURCES = adplug-db.cpp\ - plugin.c\ +adplug_la_SOURCES = plugin.c\ + adplug-db.cpp\ libbinio/binfile.h\ libbinio/binio.h\ libbinio/binstr.h\ @@ -134,5 +135,4 @@ adplug_la_SOURCES = adplug-db.cpp\ # adplug/database.cpp # adplug/database.h -adplug_la_LDFLAGS = -module endif diff --git a/plugins/adplug/adplug-db.cpp b/plugins/adplug/adplug-db.cpp index 567d55ca..a7b1f6b2 100644 --- a/plugins/adplug/adplug-db.cpp +++ b/plugins/adplug/adplug-db.cpp @@ -31,6 +31,18 @@ //#define trace(...) { fprintf (stderr, __VA_ARGS__); } #define trace(fmt,...) +int _Unwind_Resume_or_Rethrow; +int _Unwind_RaiseException; +int _Unwind_GetLanguageSpecificData; +int _Unwind_Resume; +int _Unwind_DeleteException; +int _Unwind_GetTextRelBase; +int _Unwind_SetIP; +int _Unwind_GetDataRelBase; +int _Unwind_GetRegionStart; +int _Unwind_SetGR; +int _Unwind_GetIPInfo; + extern "C" { extern DB_decoder_t adplug_plugin; |