Set custom compiler flags on Cygwin
This commit is contained in:
		
							parent
							
								
									629e8da3aa
								
							
						
					
					
						commit
						936f68668c
					
				
					 1 changed files with 7 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -29,8 +29,13 @@ mandir ?= $(prefix)/share/man
 | 
			
		|||
BUILD_SHARED_LIBS ?= 1
 | 
			
		||||
 | 
			
		||||
ifeq ($(BUILD_SHARED_LIBS), 1)
 | 
			
		||||
  GLOBAL_CFLAGS += -fPIC
 | 
			
		||||
  GLOBAL_CXXFLAGS += -fPIC
 | 
			
		||||
  ifeq (CYGWIN,$(findstring CYGWIN,$(OS)))
 | 
			
		||||
    GLOBAL_CFLAGS += -U__STRICT_ANSI__
 | 
			
		||||
    GLOBAL_CXXFLAGS += -U__STRICT_ANSI__
 | 
			
		||||
  else
 | 
			
		||||
    GLOBAL_CFLAGS += -fPIC
 | 
			
		||||
    GLOBAL_CXXFLAGS += -fPIC
 | 
			
		||||
  endif
 | 
			
		||||
  ifneq ($(OS), Darwin)
 | 
			
		||||
   ifneq ($(OS), SunOS)
 | 
			
		||||
    GLOBAL_LDFLAGS += -Wl,--no-copy-dt-needed-entries
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue