dep-repository

Default repository for the dep dependency manager
git clone git://git.finwo.net/misc/dep-repository
Log | Files | Refs

commit 4facab553d9a5108a207f05f660406f33f906246
parent bbce7518d6e0d0f39aee414a8846f2acc762a993
Author: finwo <finwo@pm.me>
Date:   Thu,  2 Nov 2023 01:00:33 +0100

Added -lpthread cflag on posix for tinycthread

Diffstat:
Mtinycthread/tinycthread/config.mk | 33+++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+), 0 deletions(-)

diff --git a/tinycthread/tinycthread/config.mk b/tinycthread/tinycthread/config.mk @@ -1 +1,34 @@ SRC+=__DIRNAME/source/tinycthread.c + +ifeq ($(OS),Windows_NT) + # CFLAGS += -D WIN32 + ifeq ($(PROCESSOR_ARCHITEW6432),AMD64) + # CFLAGS += -D AMD64 + else + ifeq ($(PROCESSOR_ARCHITECTURE),AMD64) + # CFLAGS += -D AMD64 + endif + ifeq ($(PROCESSOR_ARCHITECTURE),x86) + # CFLAGS += -D IA32 + endif + endif +else + UNAME_S := $(shell uname -s) + override CFLAGS+=-lpthread + ifeq ($(UNAME_S),Linux) + # CFLAGS += -D LINUX + endif + ifeq ($(UNAME_S),Darwin) + # CFLAGS += -D OSX + endif + UNAME_P := $(shell uname -p) + ifeq ($(UNAME_P),x86_64) + # CFLAGS += -D AMD64 + endif + ifneq ($(filter %86,$(UNAME_P)),) + # CFLAGS += -D IA32 + endif + ifneq ($(filter arm%,$(UNAME_P)),) + # CFLAGS += -D ARM + endif +endif