Skip to content

Commit

Permalink
make Python compilation compatible for Arch Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
c4tz committed Sep 21, 2017
1 parent e3456da commit 0a4a6b3
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

This comment has been minimized.

Copy link
@01t612

01t612 Nov 1, 2019

make

This comment has been minimized.

Copy link
@01t612

01t612 Nov 1, 2019

make

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

2 comments on commit 0a4a6b3

@01t612
Copy link

@01t612 01t612 commented on 0a4a6b3 Nov 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make

@01t612
Copy link

@01t612 01t612 commented on 0a4a6b3 Nov 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make

Please sign in to comment.