libretro / parallel-n64

Optimized/rewritten Nintendo 64 emulator made specifically for Libretro. Originally based on Mupen64 Plus.
319 stars 127 forks source link

Makepkg build error #606

Closed mrturcot closed 4 years ago

mrturcot commented 4 years ago

Hello I am receiving this error below during compilation on Manjaro. I cannot build the package.

collect2: error: ld returned 1 exit status make: *** [Makefile:968: parallel_n64_libretro.so] Error 1 ==> ERROR: A failure occurred in build(). Aborting...

Full build log here https://pastebin.com/Ktc4RFvZ

asavah commented 4 years ago

Quick and dirty fix to make it build on linux/gcc:

diff --git a/Makefile.common b/Makefile.common
index d807eb2b..3ca856a3 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -447,6 +447,7 @@ endif
 ifeq ($(HAVE_THR_AL), 1)
 CFLAGS      += -DHAVE_THR_AL
 CXXFLAGS    += -DHAVE_THR_AL
+LDFLAGS += -pthread
 ### Angrylion's renderer ###
 SOURCES_CXX += $(VIDEODIR_ANGRYLION)/parallel_al.cpp
 SOURCES_C   += $(VIDEODIR_ANGRYLION)/interface.c \

I did not runtime test this yet.

mrturcot commented 4 years ago

Package complies