add ld option -pthread when LTC_PTHREAD is enabled
				
					
				
			This commit is contained in:
		
							parent
							
								
									48e4ec07be
								
							
						
					
					
						commit
						73934ad2fd
					
				| @ -42,8 +42,9 @@ endif | |||||||
| endif | endif | ||||||
| endif | endif | ||||||
| 
 | 
 | ||||||
| 
 | #
 | ||||||
| # Compilation flags. Note the += does not write over the user's CFLAGS!
 | # Compilation flags. Note the += does not write over the user's CFLAGS!
 | ||||||
|  | #
 | ||||||
| CFLAGS += -I./src/headers/ -Wall -Wsign-compare -Wshadow -DLTC_SOURCE | CFLAGS += -I./src/headers/ -Wall -Wsign-compare -Wshadow -DLTC_SOURCE | ||||||
| 
 | 
 | ||||||
| ifdef OLD_GCC | ifdef OLD_GCC | ||||||
| @ -99,6 +100,10 @@ CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\" | |||||||
| endif | endif | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | ifneq ($(findstring -DLTC_PTHREAD,$(CFLAGS)),) | ||||||
|  | LDFLAGS += -pthread | ||||||
|  | endif | ||||||
|  | 
 | ||||||
| #List of demo objects
 | #List of demo objects
 | ||||||
| DSOURCES = $(wildcard demos/*.c) | DSOURCES = $(wildcard demos/*.c) | ||||||
| DOBJECTS = $(DSOURCES:.c=.o) | DOBJECTS = $(DSOURCES:.c=.o) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user