diff --git a/winsup/ChangeLog b/winsup/ChangeLog index ce5cad35c..c400d0a18 100644 --- a/winsup/ChangeLog +++ b/winsup/ChangeLog @@ -1,3 +1,9 @@ +Sun Apr 9 23:47:45 2000 Christopher Faylor + + * Makefile.common: Resolve srcdir to absolute path or it will confuse + usages when passed to submakes. Eliminate vestigal use of + MAKEOVERRIDES. + Sun Apr 9 02:06:49 2000 Christopher Faylor * Makefile.in: Work around MAKEOVERRIDES problem with older versions diff --git a/winsup/Makefile.common b/winsup/Makefile.common index 661a4d77e..8075188ec 100644 --- a/winsup/Makefile.common +++ b/winsup/Makefile.common @@ -14,7 +14,8 @@ CFLAGS_COMMON:=-Wall -Wwrite-strings # -finline-functions MALLOC_DEBUG:=#-DMALLOC_DEBUG -I/gotham/src/comp-tools/winsup/dlmalloc MALLOC_OBJ:=#/gotham/src/comp-tools/winsup/dlmalloc/malloc.o -ifeq (,${findstring /,$(srcdir)}) +override srcdir:=${shell cd $(srcdir); /bin/pwd} +ifneq (,${filter-out /%,$(srcdir)}) updir:=$(srcdir)/.. updir1:=$(updir)/.. else @@ -28,7 +29,7 @@ endif pwd:=${shell pwd} -ifeq (,${findstring /,$(pwd)}) +ifneq (,${filter-out /%,$(pwd)}) bupdir:=.. bupdir1:=../.. else @@ -115,10 +116,10 @@ else endif $(bupdir1)/libiberty/%.o: $(updir1)/libiberty/%.c - @$(MAKE) -C $(@D) $(MAKEOVERRIDES) $(@F) + @$(MAKE) -C $(@D) $(@F) $(w32api_lib)/%.a: $(w32api_lib)/Makefile - @$(MAKE) --no-print-dir -C $(@D) $(MAKEOVERRIDES) $(@F) + @$(MAKE) --no-print-dir -C $(@D) $(@F) all: