mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-29 13:03:42 +01:00
Allow building on DragonFly BSD (#167)
This commit is contained in:
parent
b11e72b288
commit
c3968ca11f
3 changed files with 6 additions and 4 deletions
|
@ -14,8 +14,8 @@ consistently across compilers and operating systems, and in 32-bit and
|
||||||
|
|
||||||
## Platform support
|
## Platform support
|
||||||
|
|
||||||
OpenLibm builds on Linux, Mac OS X, Windows, FreeBSD, and OpenBSD. It
|
OpenLibm builds on Linux, Mac OS X, Windows, FreeBSD, OpenBSD, and DragonFly BSD.
|
||||||
builds with both GCC and clang. Although largely tested and widely
|
It builds with both GCC and clang. Although largely tested and widely
|
||||||
used on x86 architectures, openlibm also supports ARM and
|
used on x86 architectures, openlibm also supports ARM and
|
||||||
powerPC.
|
powerPC.
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
#include "math_private.h"
|
#include "math_private.h"
|
||||||
|
|
||||||
#if !defined(__APPLE__) && !defined(__FreeBSD__)
|
#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__DragonFly__)
|
||||||
static __inline int digittoint(int c) {
|
static __inline int digittoint(int c) {
|
||||||
if ('0' <= c && c <= '9')
|
if ('0' <= c && c <= '9')
|
||||||
return (c - '0');
|
return (c - '0');
|
||||||
|
|
|
@ -3,9 +3,11 @@ include ../Make.inc
|
||||||
|
|
||||||
# Set rpath of tests to builddir for loading shared library
|
# Set rpath of tests to builddir for loading shared library
|
||||||
OPENLIBM_LIB = -L.. -lopenlibm
|
OPENLIBM_LIB = -L.. -lopenlibm
|
||||||
ifneq (,$(findstring $(OS),Linux FreeBSD))
|
ifneq ($(OS),WINNT)
|
||||||
|
ifneq ($(OS),Darwin)
|
||||||
OPENLIBM_LIB += -Wl,-rpath=$(OPENLIBM_HOME)
|
OPENLIBM_LIB += -Wl,-rpath=$(OPENLIBM_HOME)
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
all: test-double test-float # test-double-system test-float-system
|
all: test-double test-float # test-double-system test-float-system
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue