Skip to content

Commit 2870ed3

Browse files
committed
Update Make.inc to detect OpenBSD
With this patch I have been able to successfully compile Openlibm on OpenBSD 5.7 (x86_64) using the following command: gmake GCC=egcc GXX=eg++ USEGCC=1 ARCH=x86_64 (I had to install gcc 4.9 from ports, as Openlibm does not compile with the default compiler shipped with OpenBSD 5.7, which is gcc 4.2.1).
1 parent ef29d06 commit 2870ed3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Make.inc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ SONAME_FLAG = -soname
103103
CFLAGS_add+=-fPIC
104104
endif
105105

106+
ifeq ($(OS), OpenBSD)
107+
SHLIB_EXT = so
108+
SONAME_FLAG = -soname
109+
CFLAGS_add+=-fPIC
110+
endif
111+
106112
ifeq ($(OS), Darwin)
107113
SHLIB_EXT = dylib
108114
SONAME_FLAG = -install_name

0 commit comments

Comments
 (0)