Commit de6f23d4 authored by wolfgang's avatar wolfgang
Browse files

[project @ 2005-07-15 02:00:15 by wolfgang]

Mac OS X/PowerPC: Make GHCi deal with the additional statically linked
symbols from libSystemStub.a on Tiger (printf$LDBLStub and friends).

MERGE TO STABLE
parent 834e8207
......@@ -1270,6 +1270,21 @@ AC_TRY_COMPILE(,[__asm__ (".subsections_via_symbols");],
[Define to 1 if Apple-style dead-stripping is supported.])
])
dnl ** check for Apple's "interesting" long double compatibility scheme
AC_MSG_CHECKING(for printf$LDBLStub)
AC_TRY_LINK_FUNC(printf$LSBLStub,
[
AC_MSG_RESULT(yes)
AC_DEFINE([HAVE_PRINTF_LDBLSTUB],[1],
[Define to 1 if we have printf$LDBLStub (Apple Mac OS >= 10.4, PPC).])
],
[
AC_MSG_RESULT(no)
AC_DEFINE([HAVE_PRINTF_LDBLSTUB],[0],
[Define to 1 if we have printf$LDBLStub (Apple Mac OS >= 10.4, PPC).])
])
AC_CONFIG_FILES([mk/config.mk])
AC_CONFIG_COMMANDS([mk/stamp-h],[echo timestamp > mk/stamp-h])
AC_OUTPUT
......@@ -321,6 +321,56 @@ typedef struct _RtsSymbolVal {
Sym(closedir)
#endif
#if defined(darwin_TARGET_OS) && HAVE_PRINTF_LDBLSTUB
#define RTS_DARWIN_ONLY_SYMBOLS \
Sym(asprintf$LDBLStub) \
Sym(err$LDBLStub) \
Sym(errc$LDBLStub) \
Sym(errx$LDBLStub) \
Sym(fprintf$LDBLStub) \
Sym(fscanf$LDBLStub) \
Sym(fwprintf$LDBLStub) \
Sym(fwscanf$LDBLStub) \
Sym(printf$LDBLStub) \
Sym(scanf$LDBLStub) \
Sym(snprintf$LDBLStub) \
Sym(sprintf$LDBLStub) \
Sym(sscanf$LDBLStub) \
Sym(strtold$LDBLStub) \
Sym(swprintf$LDBLStub) \
Sym(swscanf$LDBLStub) \
Sym(syslog$LDBLStub) \
Sym(vasprintf$LDBLStub) \
Sym(verr$LDBLStub) \
Sym(verrc$LDBLStub) \
Sym(verrx$LDBLStub) \
Sym(vfprintf$LDBLStub) \
Sym(vfscanf$LDBLStub) \
Sym(vfwprintf$LDBLStub) \
Sym(vfwscanf$LDBLStub) \
Sym(vprintf$LDBLStub) \
Sym(vscanf$LDBLStub) \
Sym(vsnprintf$LDBLStub) \
Sym(vsprintf$LDBLStub) \
Sym(vsscanf$LDBLStub) \
Sym(vswprintf$LDBLStub) \
Sym(vswscanf$LDBLStub) \
Sym(vsyslog$LDBLStub) \
Sym(vwarn$LDBLStub) \
Sym(vwarnc$LDBLStub) \
Sym(vwarnx$LDBLStub) \
Sym(vwprintf$LDBLStub) \
Sym(vwscanf$LDBLStub) \
Sym(warn$LDBLStub) \
Sym(warnc$LDBLStub) \
Sym(warnx$LDBLStub) \
Sym(wcstold$LDBLStub) \
Sym(wprintf$LDBLStub) \
Sym(wscanf$LDBLStub)
#else
#define RTS_DARWIN_ONLY_SYMBOLS
#endif
#ifndef SMP
# define MAIN_CAP_SYM SymX(MainCapability)
#else
......@@ -662,6 +712,7 @@ RTS_LONG_LONG_SYMS
RTS_POSIX_ONLY_SYMBOLS
RTS_MINGW_ONLY_SYMBOLS
RTS_CYGWIN_ONLY_SYMBOLS
RTS_DARWIN_ONLY_SYMBOLS
RTS_LIBGCC_SYMBOLS
#undef Sym
#undef SymX
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment