Skip to content

Commit

Permalink
Merge pull request Kitt-AI#280 from c4tz/master
Browse files Browse the repository at this point in the history
make Python compilation compatible for Arch Linux
  • Loading branch information
chenguoguo authored Sep 21, 2017
2 parents e3456da + 0a4a6b3 commit 4e08a39
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion swig/Python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ else
CXXFLAGS += -std=c++0x
# Make sure you have Atlas installed. You can statically link Atlas if you
# would like to be able to move the library to a machine without Atlas.
LDLIBS := -lm -ldl -lf77blas -lcblas -llapack_atlas -latlas
ifneq ("$(ldconfig -p | grep lapack_atlas)","")
LDLIBS := -lm -ldl -lf77blas -lcblas -llapack_atlas -latlas
else
LDLIBS := -lm -ldl -lf77blas -lcblas -llapack -latlas
endif
SNOWBOYDETECTLIBFILE = $(TOPDIR)/lib/ubuntu64/libsnowboy-detect.a
ifneq (,$(findstring arm,$(shell uname -m)))
SNOWBOYDETECTLIBFILE = $(TOPDIR)/lib/rpi/libsnowboy-detect.a
Expand Down
6 changes: 5 additions & 1 deletion swig/Python3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ else
CXXFLAGS += -std=c++0x
# Make sure you have Atlas installed. You can statically link Atlas if you
# would like to be able to move the library to a machine without Atlas.
LDLIBS := -lm -ldl -lf77blas -lcblas -llapack_atlas -latlas
ifneq ("$(ldconfig -p | grep lapack_atlas)","")
LDLIBS := -lm -ldl -lf77blas -lcblas -llapack_atlas -latlas
else
LDLIBS := -lm -ldl -lf77blas -lcblas -llapack -latlas
endif
SNOWBOYDETECTLIBFILE = $(TOPDIR)/lib/ubuntu64/libsnowboy-detect.a
ifneq (,$(findstring arm,$(shell uname -m)))
SNOWBOYDETECTLIBFILE = $(TOPDIR)/lib/rpi/libsnowboy-detect.a
Expand Down

0 comments on commit 4e08a39

Please sign in to comment.