]> Cypherpunks repositories - gostls13.git/commitdiff
build: use full path when compiling libraries
authorRuss Cox <rsc@golang.org>
Fri, 24 Sep 2010 15:55:16 +0000 (11:55 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 24 Sep 2010 15:55:16 +0000 (11:55 -0400)
Makes gdb display full paths in backtrace.
Dropped during the most recent reorg.

R=r
CC=golang-dev
https://golang.org/cl/2216047

src/Make.clib

index 6a20e0c3a902f051dbec099f7b3a16963825f5bb..9f72bcb626ec572c5f1482bc1eefa62ae9ab13f6 100644 (file)
@@ -7,7 +7,7 @@
 all: $(LIB)
 
 %.$(HOST_O): %.c
-       $(HOST_CC) $(HOST_CFLAGS) -c $*.c
+       $(HOST_CC) $(HOST_CFLAGS) -c "$(PWD)/$*.c"
 
 $(OFILES): $(HFILES)