Don't pass "--no-copy-dt-needed-entries" option to linker on FreeBSD.
Eventually the nested if statements should be replaced by a more general condition, but this is sufficient to make it work on FreeBSD.
This commit is contained in:
		
							parent
							
								
									cbc177ca01
								
							
						
					
					
						commit
						c999ef70e8
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -61,9 +61,11 @@ ifeq ($(BUILD_SHARED_LIBS), 1)
 | 
				
			||||||
  endif
 | 
					  endif
 | 
				
			||||||
  ifneq ($(OS), Darwin)
 | 
					  ifneq ($(OS), Darwin)
 | 
				
			||||||
   ifneq ($(OS), SunOS)
 | 
					   ifneq ($(OS), SunOS)
 | 
				
			||||||
 | 
					    ifneq ($(OS), FreeBSD)
 | 
				
			||||||
     GLOBAL_LDFLAGS += -Wl,--no-copy-dt-needed-entries
 | 
					     GLOBAL_LDFLAGS += -Wl,--no-copy-dt-needed-entries
 | 
				
			||||||
    endif
 | 
					    endif
 | 
				
			||||||
   endif
 | 
					   endif
 | 
				
			||||||
 | 
					  endif
 | 
				
			||||||
  SET_RPATH_TO_LIBS ?= 1
 | 
					  SET_RPATH_TO_LIBS ?= 1
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue