Merge pull request #662 from netzbasis/openbsd

Adjust compile instructions for OpenBSD to use cc with -lpthread and -lm
This commit is contained in:
UnknownShadow200 2020-05-29 00:03:26 +10:00 committed by GitHub
commit acb4c33ce2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -84,7 +84,7 @@ Although the regular linux compiliation flags will work fine, to take full advan
Install libexecinfo package if needed.
```gcc *.c -o ClassiCube -I /usr/X11R6/include -I /usr/local/include -L /usr/X11R6/lib -L /usr/local/lib -lX11 -lXi -lGL -lexecinfo```
```cc *.c -o ClassiCube -I /usr/X11R6/include -I /usr/local/include -L /usr/X11R6/lib -L /usr/local/lib -lm -lpthread -lX11 -lXi -lGL -lexecinfo```
#### NetBSD

View File

@ -50,9 +50,10 @@ LIBS=-lexecinfo -lGL -lX11 -lXi -lm -lpthread
endif
ifeq ($(PLAT),openbsd)
CC=cc
CFLAGS=-g -pipe -rdynamic -I /usr/X11R6/include -I /usr/local/include -fno-math-errno
LDFLAGS=-L /usr/X11R6/lib -L /usr/local/lib
LIBS=-lexecinfo -lGL -lX11 -lXi
LIBS=-lexecinfo -lGL -lX11 -lXi -lm -lpthread
endif
ifeq ($(PLAT),netbsd)