Browse Source

Cmake: lpthread in LDFLAGS instead of CFLAGS
xorg smoke too much, normally this is wonderful for the
code. Not this time :-)

Philippe Pepiot 14 years ago
parent
commit
d8f086868c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      CMakeLists.txt

+ 2 - 2
CMakeLists.txt

@@ -54,12 +54,12 @@ add_executable(wmfs ${wmfs_src})
 set(VERSION "WMFS-201001")
 
 # FLAGS
-set(CFLAGS "-g -Wall -lpthread -ansi")
+set(CFLAGS "-g -Wall -ansi")
 set(CMAKE_C_FLAGS ${CFLAGS})
 
 # Linker FLAGS
 
-set(DEFAULT_LDFLAGS "-L /usr/local/lib")
+set(DEFAULT_LDFLAGS "-L /usr/local/lib -lpthread")
 
 if(CMAKE_SYSTEM_NAME MATCHES NetBSD)
     message("-- NetBSD system found - Using /usr/pkg/lib for linker")