Browse code

Add -pthread into LIBS, which is necessary when compiling on FreeBSD/alpha and other FreeBSD arches for which no fast locking assembly code exists.

Maxim Sobolev authored on 25/09/2003 18:04:27
Showing 1 changed files
... ...
@@ -26,6 +26,9 @@
26 26
 #  2003-06-06  moved compiler detection before DEFS (andrei)
27 27
 #  2003-06-10  removed -m32 for gcc 3.x/sparc64  -- it will use 
28 28
 #              arch. default: -m32 on solaris, -m64 on *bsd (andrei)
29
+#  2003-09-25  added -pthread into LIBS when compiling on FreeBSD/alpha
30
+#              and other FreeBSD arches for which no fast locking assembly
31
+#              code exists (sobomax)
29 32
 
30 33
 
31 34
 # check if already included/exported
... ...
@@ -654,9 +657,11 @@ ifeq ($(OS), freebsd)
654 657
 	ifneq ($(found_lock_method), yes)
655 658
 		DEFS+= -DUSE_PTHREAD_MUTEX  # try pthread sems
656 659
 		found_lock_method=yes
660
+		LIBS= -pthread -lfl  #dlopen is in libc
661
+	else
662
+		LIBS= -lfl  #dlopen is in libc
657 663
 	endif
658 664
 	YACC=yacc
659
-	LIBS= -lfl  #dlopen is in libc
660 665
 endif
661 666
 
662 667
 ifeq ($(OS), openbsd)