Skip to content
Permalink
Browse files

Fixed -lprotobuf link errors on OS X 10.9.3.

  • Loading branch information...
jacobsa committed Jul 1, 2014
1 parent 010bcc5 commit b5307eaf4c1e2abc78333c24529828ceff9c7937
Showing with 4 additions and 1 deletion.
  1. +3 −0 Makefile
  2. +1 −1 scripts/cc_rules.mk
@@ -19,6 +19,9 @@ CPPFLAGS += -DDEFAULT_DATA_DIR=$(DEFAULT_DATA_DIR)
# Compiler flags.
CXXFLAGS += -DHASH_NAMESPACE=__gnu_cxx

# Linker flags.
LDFLAGS += -L/usr/local/lib

# Fix clock_gettime in timer.cc.
UNAME := $(shell uname)
ifeq ($(UNAME), Linux)
@@ -128,7 +128,7 @@ $(eval $(call cc_object_deps,$(1),$(2),$(1).cc))
# the sake of test binaries.
$(1).bin : $(1).object_deps $(1).header_deps scripts/cc_binary_build.sh
$(MAKE) -C third_party/gmock/make gmock.a gmock_main.a
./scripts/cc_binary_build.sh $(1) $(3) -lglog -lv8 $(CXXFLAGS) $(CPPFLAGS)
./scripts/cc_binary_build.sh $(1) $(3) -lglog -lv8 $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS)

CC_BINARIES += $(1).bin

0 comments on commit b5307ea

Please sign in to comment.
You can’t perform that action at this time.