summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonathan L Long <jonlong@cs.berkeley.edu>2015-02-17 01:19:51 -0800
committerJonathan L Long <jonlong@cs.berkeley.edu>2015-02-17 01:19:51 -0800
commit91289b3d95e9baa0ee6f7083f1f74097e4475e93 (patch)
treec8032a91271266b35506c7d739e54acd7075d2dc /Makefile
parent9b38744f22aa3eaddf22f8a3b4cd0a877a050817 (diff)
downloadcaffeonacl-91289b3d95e9baa0ee6f7083f1f74097e4475e93.tar.gz
caffeonacl-91289b3d95e9baa0ee6f7083f1f74097e4475e93.tar.bz2
caffeonacl-91289b3d95e9baa0ee6f7083f1f74097e4475e93.zip
[make] link libcaffe.so before dependencies
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 254f7fe9..b298d9d1 100644
--- a/Makefile
+++ b/Makefile
@@ -430,7 +430,7 @@ py: $(PY$(PROJECT)_SO) $(PROTO_GEN_PY)
$(PY$(PROJECT)_SO): $(PY$(PROJECT)_SRC) $(PY$(PROJECT)_HXX) | $(DYNAMIC_NAME)
@ echo CXX/LD -o $@ $<
$(Q)$(CXX) -shared -o $@ $(PY$(PROJECT)_SRC) \
- -o $@ $(LINKFLAGS) $(PYTHON_LDFLAGS) -l$(PROJECT) \
+ -o $@ $(LINKFLAGS) -l$(PROJECT) $(PYTHON_LDFLAGS) \
-Wl,-rpath,$(ORIGIN)/../../build/lib
mat$(PROJECT): mat
@@ -539,7 +539,7 @@ $(TOOL_BUILD_DIR)/%: $(TOOL_BUILD_DIR)/%.bin | $(TOOL_BUILD_DIR)
$(TOOL_BINS) $(EXAMPLE_BINS): %.bin : %.o | $(DYNAMIC_NAME)
@ echo CXX/LD -o $@
- $(Q)$(CXX) $< -o $@ $(LINKFLAGS) $(LDFLAGS) -l$(PROJECT) \
+ $(Q)$(CXX) $< -o $@ $(LINKFLAGS) -l$(PROJECT) $(LDFLAGS) \
-Wl,-rpath,$(ORIGIN)/../lib
proto: $(PROTO_GEN_CC) $(PROTO_GEN_HEADER)