Add -DMACOSX

This commit is contained in:
Don Stewart 2005-05-21 05:48:53 +00:00
parent f488031d81
commit 685ba637b6
3 changed files with 3 additions and 1 deletions

1
configure vendored
View File

@ -1347,6 +1347,7 @@ if test "$MACOSX" = "yes"
then
WHOLE_ARCHIVE_FLAG=-all_load
LEADING_UNDERSCORE=1
SYMS="$SYMS -DMACOSX"
else
WHOLE_ARCHIVE_FLAG=--whole-archive
LEADING_UNDERSCORE=0

View File

@ -39,6 +39,7 @@ if test "$MACOSX" = "yes"
then
WHOLE_ARCHIVE_FLAG=-all_load
LEADING_UNDERSCORE=1
SYMS="$SYMS -DMACOSX"
else
WHOLE_ARCHIVE_FLAG=--whole-archive
LEADING_UNDERSCORE=0

View File

@ -351,7 +351,7 @@ classifyLdInput ('-':'L':path) = return (Just (DLLPath path))
classifyLdInput _ = return Nothing
-- TODO need to define a MAC/DARWIN symbol
#if defined(darwin_TARGET_OS)
#if defined(MACOSX)
mkSOName root = "lib" ++ root ++ ".dylib"
#elif defined(CYGWIN) || defined(__MINGW32__)
-- Win32 DLLs have no .dll extension here, because addDLL tries