~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to support-files/MacOSX/mwcc-wrapper

  • Committer: Brian Aker
  • Date: 2008-06-30 05:41:20 UTC
  • Revision ID: brian@tangent.org-20080630054120-qggcxqh7k7zf09r9
Dead support files, removed gethostbyname_r (we do not use it any longer). 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
if [ -z "$CWINSTALL" ] ; then
4
 
    echo "ERROR: You need to source 'mwvars' to set CWINSTALL and other variables"
5
 
    exit 1
6
 
fi
7
 
 
8
 
if [ `expr "$MWMacOSXPPCLibraryFiles" : ".*BSD.*"` = 0 ] ; then
9
 
    echo "ERROR: You need to source 'mwvars' with the 'bsd' argument"
10
 
    exit 1
11
 
fi
12
 
 
13
 
# ==============================================================================
14
 
 
15
 
# Extra options that don't change
16
 
 
17
 
PREOPTS="-D__SCHAR_MAX__=127 -D__CHAR_BIT__=8 -ext o -gccinc"
18
 
PREOPTS="$PREOPTS -wchar_t on -bool on -relax_pointers -align power_gcc"
19
 
PREOPTS="$PREOPTS -stabs all -fno-handle-exceptions -Cpp_exceptions off"
20
 
 
21
 
# ==============================================================================
22
 
 
23
 
# We want the "PPC Specific" directory to be last, before the source
24
 
# file. It is to work around a CodeWarrior/Apple bug, that we need a
25
 
# Metrowersk header even though we have configured CodeWarrior to use
26
 
# the BSD headers. But not to conflict, the directory has to be last.
27
 
 
28
 
# FIXME this will probably break if one path contains space characters
29
 
 
30
 
PREARGS=""
31
 
for i in $* ; do
32
 
    case "$i" in
33
 
        -bind_at_load)
34
 
        # This is a flag some version of libtool adds, when the host
35
 
        # is "*darwin*". It doesn't check that it is gcc.
36
 
        # FIXME add some flag?!
37
 
        ;;
38
 
        *.c|*.cc|*.cpp)
39
 
        break
40
 
        ;;
41
 
        *)
42
 
        PREARGS="$PREARGS $1"
43
 
        ;;
44
 
    esac
45
 
    shift
46
 
done
47
 
#echo "mwcc $PREOPTS $PREARGS -I\"$CWINSTALL/MacOS X Support/Headers/PPC Specific\" $*"
48
 
exec mwcc $PREOPTS $PREARGS -I"$CWINSTALL/MacOS X Support/Headers/PPC Specific" $*