Ticket #14658: patch-foreign-1.1d7-c-c.diff

File patch-foreign-1.1d7-c-c.diff, 1.5 KB (added by Jacobus.Geluk@…, 17 years ago)
  • ../foreign-1.1d7/c/c

    old new  
    195195        RANLIB=1
    196196
    197197    elif [ "$UTYPE" = "FreeBSD" ]; then
    198         STDLIBS="-lm"
    199         CCOPTS="-Wall"
     198        STDLIBS="-lm -L/usr/local/lib -lpcre -lapr-1 -laprutil-1"
     199        CCOPTS="-Wall -Wno-strict-aliasing -Wno-cast-qual -Wno-pointer-sign -I/usr/local/include -I/usr/local/include/apr-1 -I../base-1.2d7/_install/include"
    200200        [ -z "$BOOM_MODEL_NOOPT" ] && CCDEBUG="-O"
    201201        [ -z "$BOOM_MODEL_NOOPT" ] && CCNODEBUG="-O2"
    202202        CCNAME="${CCNAME:-gcc}"             #   Use gcc if not set
    203203        CCPLUS="${CCPLUS:-g++}"             #   Use g++ if not set
     204        if [ "$BOOM_MODEL_MT" ]; then
     205            CCOPTS="$CCOPTS -pthread -D_REENTRANT"
     206            #  Request iCL use direct memory allocator by default for
     207            #  MT release builds.
     208            CCOPTS="$CCOPTS -DICL_MEM_DEFAULT_DIRECT"
     209            BOOM_SUPPORTS_MT=1              #   MT code is supported
     210        fi
     211        if [ "$BOOM_MODEL_GPROF" ]; then
     212            CCOPTS="$CCOPTS -pg"
     213            BOOM_SUPPORTS_GPROF=1
     214        fi
     215        CCOPTS="$CCOPTS -D_GNU_SOURCE -D_LARGEFILE64_SOURCE"
    204216        RANLIB=1
    205217        LINKTYPE=gnu
    206218
     
    218230        STDLIBS="-lm"
    219231        CCOPTS="-Ae -D_HPUX_SOURCE"         #   May need -Aa
    220232        [ -z "$BOOM_MODEL_NOOPT" ] && CCNODEBUG="-O"
    221         LINKTYPE=before
     233        LINKTYPE=beFore
    222234
    223235    elif [ "$UTYPE" = "Linux" ]; then
    224236        STDLIBS="-lm"