brew install --build-from-source --with-python -vd protobuf
snappy leveldb protobuf gflags etc.
For each of these formulas, brew edit FORMULA
, and add the ENV definitions as shown:
def install
# ADD THE FOLLOWING:
ENV.append "CXXFLAGS", "-stdlib=libstdc++"
ENV.append "CFLAGS", "-stdlib=libstdc++"
ENV.append "LDFLAGS", "-stdlib=libstdc++ -lstdc++"
# The following is necessary because libtool likes to strip LDFLAGS:
ENV["CXX"] = "/usr/bin/clang++ -stdlib=libstdc++"
...
# ADD THE FOLLOWING.
...
inside existing "def install" or should I create a new "def install" ?
should I close "def install" by "end" and delete "...", exists at the end of the line ?
I will highly appreciate your kind help.
Thanks in advance.