Skip to content

undefined reference to pthread on non x86_64 #10

@ghProfile

Description

@ghProfile

This code causes an error when linking on ARM devices

ifeq ($(shell uname -m),x86_64)
	CC_FLAGS += -march=native -pthread -lpthread
endif

Reason https://developers.redhat.com/articles/2021/12/17/why-glibc-234-removed-libpthread#

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions