mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	Sprinkle the magic anti-GCC-suckage for *BSD as well.
This commit is contained in:
		
							
								
								
									
										12
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								Makefile
									
									
									
									
									
								
							| @@ -1,4 +1,4 @@ | |||||||
| # $Id: Makefile,v 1.133 2009-05-14 00:17:37 nicm Exp $ | # $Id: Makefile,v 1.134 2009-05-14 00:28:04 nicm Exp $ | ||||||
|  |  | ||||||
| .SUFFIXES: .c .o | .SUFFIXES: .c .o | ||||||
| .PHONY: clean | .PHONY: clean | ||||||
| @@ -9,10 +9,18 @@ FDEBUG= 1 | |||||||
|  |  | ||||||
| CC?= cc | CC?= cc | ||||||
| CFLAGS+= -DBUILD="\"$(VERSION)\"" | CFLAGS+= -DBUILD="\"$(VERSION)\"" | ||||||
| CPPFLAGS:= -I. -I- -I/usr/local/include ${CPPFLAGS} |  | ||||||
| LDFLAGS+= -L/usr/local/lib | LDFLAGS+= -L/usr/local/lib | ||||||
| LIBS+= -lncurses | LIBS+= -lncurses | ||||||
|  |  | ||||||
|  | # This sort of sucks but gets rid of the stupid warning and should work on | ||||||
|  | # most platforms... | ||||||
|  | CCV!= (${CC} -v 2>&1|awk '/gcc version 4/ { print $0 }') || true | ||||||
|  | .if "${CCV}" == "" | ||||||
|  | CPPFLAGS:= -I. -I- -I/usr/local/include ${CPPFLAGS} | ||||||
|  | .else | ||||||
|  | CPPFLAGS:= -iquote. -I/usr/local/include ${CPPFLAGS} | ||||||
|  | .endif | ||||||
|  |  | ||||||
| .ifdef FDEBUG | .ifdef FDEBUG | ||||||
| LDFLAGS+= -Wl,-E | LDFLAGS+= -Wl,-E | ||||||
| CFLAGS+= -g -ggdb -DDEBUG | CFLAGS+= -g -ggdb -DDEBUG | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Nicholas Marriott
					Nicholas Marriott