Skip to content

Commit

Permalink
Add -lm as floor() is used
Browse files Browse the repository at this point in the history
This fixes build on armv7hl:
/usr/bin/ld: build/temp.linux-armv8l-3.10/src/numbers.o: in function `_PyFloat_is_Intlike':
/home/iurt/rpmbuild/BUILD/fastnumbers-3.2.1/src/numbers.c:69: undefined reference to `floor'
  • Loading branch information
pterjan authored Feb 27, 2022
1 parent c2511e7 commit 765807c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
sorted(glob.glob("src/*.c")),
include_dirs=[os.path.abspath(os.path.join("include"))],
extra_compile_args=[],
extra_link_args=["-lm"],
)
],
)

0 comments on commit 765807c

Please sign in to comment.