Browse Source

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 22 years ago
parent
commit
4e01831047
1 changed files with 6 additions and 1 deletions
  1. 6 1
      Makefile.defs

+ 6 - 1
Makefile.defs

@@ -26,6 +26,9 @@
 #  2003-06-06  moved compiler detection before DEFS (andrei)
 #  2003-06-10  removed -m32 for gcc 3.x/sparc64  -- it will use 
 #              arch. default: -m32 on solaris, -m64 on *bsd (andrei)
+#  2003-09-25  added -pthread into LIBS when compiling on FreeBSD/alpha
+#              and other FreeBSD arches for which no fast locking assembly
+#              code exists (sobomax)
 
 
 # check if already included/exported
@@ -654,9 +657,11 @@ ifeq ($(OS), freebsd)
 	ifneq ($(found_lock_method), yes)
 		DEFS+= -DUSE_PTHREAD_MUTEX  # try pthread sems
 		found_lock_method=yes
+		LIBS= -pthread -lfl  #dlopen is in libc
+	else
+		LIBS= -lfl  #dlopen is in libc
 	endif
 	YACC=yacc
-	LIBS= -lfl  #dlopen is in libc
 endif
 
 ifeq ($(OS), openbsd)