From 0590488dcfb3bfde23ede274d5a0cf2c4a6557e3 Mon Sep 17 00:00:00 2001 From: Benjamin Baier Date: Thu, 28 May 2020 15:57:00 +0200 Subject: [PATCH] Adjust compile instructions for OpenBSD to use cc with -lpthread and -lm --- readme.md | 2 +- src/Makefile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index caee505f7..6a79af63d 100644 --- a/readme.md +++ b/readme.md @@ -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 diff --git a/src/Makefile b/src/Makefile index 6a05b1e61..7d1b3912b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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)