diff -r f2740c7288e6 config --- a/config Sat Feb 08 21:53:54 2014 +0100 +++ b/config Sun Feb 09 15:30:03 2014 +0100 @@ -30,10 +30,11 @@ #------------------------------------------------------------------------------ # Compiler configuration: +# Comment in TSYS_POSIX if your platform is not listed in include/tek/config.h #------------------------------------------------------------------------------ # CCPREFIX = -CC = $(CCPREFIX)gcc -fpic +CC = $(CCPREFIX)gcc -fpic # -DTSYS_POSIX # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # For Windows using MingW: @@ -84,9 +85,9 @@ LUA_DEFS = -I$(PREFIX)/include -I/usr/local/include/lua51 -I/usr/include/lua5.1 FREETYPE_LIBS = -L$(PREFIX)/lib -lfreetype -FREETYPE_DEFS = -I$(PREFIX)/include -I$(PREFIX)/include/freetype2 -I/usr/include/freetype2 -I/usr/X11R6/include/freetype2 +FREETYPE_DEFS = -I$(PREFIX)/include -I$(PREFIX)/include/freetype2 -I/usr/include/freetype2 -I/usr/X11R6/include/freetype2 -I/usr/X11/include/ -X11_LIBS = -L/usr/X11R6/lib -LX11 -lXext -lXxf86vm +X11_LIBS = -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm X11_DEFS = -I/usr/X11R6/include $(FREETYPE_DEFS) -D_XOPEN_SOURCE -DENABLE_XFT -DENABLE_XVID WIN_LIBS = $(PLATFORM_LIBS) -lgdi32 @@ -123,7 +124,9 @@ OPT = -O2 -fno-strict-aliasing INCL = -I. -Iinclude -I$(INCDIR) LIBCFLAGS = $(DEBUG) $(WARN) $(OPT) $(INCL) $(EXTRADEFS) -MODCFLAGS = -shared -L $(LIBDIR) +# MODCFLAGS = -shared -L $(LIBDIR) +# For Mac OS X: +MODCFLAGS = -bundle -undefined dynamic_lookup -L $(LIBDIR) BINCFLAGS = $(DEBUG) $(WARN) $(OPT) $(INCL) $(EXTRADEFS) #------------------------------------------------------------------------------ diff -r f2740c7288e6 include/tek/config.h --- a/include/tek/config.h Sat Feb 08 21:53:54 2014 +0100 +++ b/include/tek/config.h Sun Feb 09 15:30:03 2014 +0100 @@ -8,7 +8,7 @@ ** See copyright notice in teklib/COPYRIGHT */ -#if defined(TSYS_POSIX) || defined(__linux) || defined(__FreeBSD__) || defined(__NetBSD__) +#if defined(TSYS_POSIX) || defined(__linux) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) #ifndef TSYS_POSIX #define TSYS_POSIX #endif