Hi,

this is a shell script (bash) showing how we basically compile gRPC with 
Make:

    if [[ -f Makefile ]] ; then
        make distclean >/dev/null 2>&1
    fi

    export CXXFLAGS=""
    if (( "$gpp_major_version" >= 8 )) ; then
        # some tweaks for never GCC versions
        export CXXFLAGS="-Wno-error=class-memaccess 
-Wno-error=ignored-qualifiers -Wno-error=stringop-truncation 
-Wno-error=unused-function"
    fi
    # use c-ares library that is shipped with the gRPC sources:
    export HAS_SYSTEM_CARES="false"
    # use protobuf library that is shipped with the gRPC sources
    export HAS_SYSTEM_PROTOBUF="false"
    # use the protobuf compiler that is shipped with the gRPC sources:
    export HAS_PROTOC="false"

    make clean
    make CXX="$gpp_path" \
         BUILDDIR="$build_dir" \
         $options 


   - $gpp_path shall contain the path to your compiler.
   - $build_dir shall contain the path where the build is being done.
   - $gpp_major_version shall contain the major version of GCC (get it via 
$gpp_path 
   --version)
   - $options shall contain any oother options you need to pass to the 
   build system
   

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/b5f6f17a-072a-412f-b14d-06509bb78199%40googlegroups.com.

Reply via email to