diff --git a/Include/allobjects.h b/Include/allobjects.h index 34b3816b5b6..6dbdb1e58e5 100644 --- a/Include/allobjects.h +++ b/Include/allobjects.h @@ -47,12 +47,20 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "config.h" #endif +#ifdef __CFM68K__ +#define UsingSharedLibs +#endif + #include #include #include #include "myproto.h" +#ifdef __CFM68K__ +#pragma lib_export on +#endif + #include "object.h" #include "objimpl.h" diff --git a/Include/mymalloc.h b/Include/mymalloc.h index f7c0ae8ec70..db0c9bd4184 100644 --- a/Include/mymalloc.h +++ b/Include/mymalloc.h @@ -56,6 +56,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. extern "C" { #endif +#ifdef __CFM68K__ +#pragma lib_export on +#endif + #ifndef HAVE_STDLIB_H extern ANY *malloc Py_PROTO((size_t)); extern ANY *calloc Py_PROTO((size_t, size_t)); diff --git a/Include/mymath.h b/Include/mymath.h new file mode 100644 index 00000000000..b34b77e2b97 --- /dev/null +++ b/Include/mymath.h @@ -0,0 +1,16 @@ +/* On the 68K Mac, when using CFM (Code Fragment Manager), + requires special treatment -- we need to surround it with + #pragma lib_export off / on... + This is because MathLib.o is a static library, and exporting its + symbols doesn't quite work... + XXX Not sure now... Seems to be something else going on as well... */ + +#ifdef __CFM68K__ +#pragma lib_export off +#endif + +#include + +#ifdef __CFM68K__ +#pragma lib_export on +#endif