Skip to content

Commit

Permalink
Link with -lpthread instead of pthread
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Jan 9, 2025
1 parent 16711fb commit cd55f17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ else
endif

# Link against thread lib
LDFLAGS += -pthread
LDFLAGS += -lpthread

# Build for distribution
.PHONY: distro
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ prior to invoking `make`. The following build variables can be configured:
- `WEXTRA`: If set to 1, `-Wextra` is added to `CFLAGS` automatically.
- `LDFLAGS`: Extra linker flags (default is _not set_). Note, `-lm -lxchange` will be added automatically.
- `LDFLAGS`: Extra linker flags (default is _not set_). Note, `-lm -lpthread -lxchange` will be added automatically.
- `WITH_OPENMP`: If set to 1, we will compile and link with OpenMP (i.e., `-fopenmp` is added to both `CFLAGS` and
`LDFLAGS` automatically). If not explicitly defined, it will be set automatically if `libgomp` is available.
Expand Down

0 comments on commit cd55f17

Please sign in to comment.