jpcima / ADLplug

FM Chip Synthesizer — OPL & OPN — VST/LV2/Standalone
Boost Software License 1.0
426 stars 22 forks source link

Prefer `-pthread` flag for pthread #82

Closed r-value closed 2 years ago

r-value commented 2 years ago

According to gcc doc, -pthread flag will link the program against libraries like libatomic on demand, which is the expected usage of pthread. Using -lpthread in CFLAGS and LDFLAGS causes absense of these libraries, thus failing to build on architectures which needs soft atomic operation implementation.

Reference: GCC doc, Stack Overflow

jpcima commented 2 years ago

Looking good, thanks.