aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-08-21 19:36:52 +0000
committerChristopher Faylor <me@cgf.cx>2011-08-21 19:36:52 +0000
commit8f8977bb8b27c097aeef2c17f6dd3d19736fd8e3 (patch)
treebcb9aa43a912a0c132d22613f0056e72ec4bdf60
parent059f809e4b946b953248ebe388f689016ee9afb8 (diff)
downloadnewlib-8f8977bb8b27c097aeef2c17f6dd3d19736fd8e3.zip
newlib-8f8977bb8b27c097aeef2c17f6dd3d19736fd8e3.tar.gz
newlib-8f8977bb8b27c097aeef2c17f6dd3d19736fd8e3.tar.bz2
* Makefile.in: Check for header file existence when building dumper.exe too.
-rw-r--r--winsup/utils/ChangeLog5
-rw-r--r--winsup/utils/Makefile.in8
2 files changed, 10 insertions, 3 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index 1b95df5..3ff2fd7 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -1,3 +1,8 @@
+2011-08-21 Christopher Faylor <me.cygwin2011@cgf.cx>
+
+ * Makefile.in: Check for header file existence when building dumper.exe
+ too.
+
2011-08-10 Corinna Vinschen <corinna@vinschen.de>
* ps.cc (main): Don't overwrite process name, just attach <defunct>
diff --git a/winsup/utils/Makefile.in b/winsup/utils/Makefile.in
index b25908f..dbdb167 100644
--- a/winsup/utils/Makefile.in
+++ b/winsup/utils/Makefile.in
@@ -88,7 +88,8 @@ ldh.exe: MINGW_LDFLAGS := -nostdlib -lkernel32
LIBICONV := @libiconv@
libbfd := ${shell $(CC) -B$(bupdir2)/bfd/ --print-file-name=libbfd.a}
libintl := ${shell $(CC) -B$(bupdir2)/intl/ --print-file-name=libintl.a}
-build_dumper := ${shell test -r $(libbfd) -a -r $(libintl) -a -n "$(LIBICONV)" && echo 1}
+bfdlink := $(shell ${CC} -xc /dev/null -o /dev/null -c -B${bupdir2}/bfd/ -include bfd.h 2>&1)
+build_dumper := ${shell test -r $(libbfd) -a -r $(libintl) -a -n "$(LIBICONV)" -a -z "${bfdlink}" && echo 1}
ifdef build_dumper
CYGWIN_BINS += dumper.exe
dumper.o module_info.o parse_pe.o: CXXFLAGS += -I$(bupdir2)/bfd -I$(updir1)/include
@@ -180,8 +181,9 @@ $(MINGW_LIB): $(mingw_build)/Makefile
@$(MAKE) -C $(@D) $(@F)
warn_dumper:
- @echo '*** Not building dumper.exe since some required libraries are'
- @echo '*** missing: libbfd.a and libintl.a.'
+ @echo '*** Not building dumper.exe since some required libraries or'
+ @echo '*** or headers are missing. Potential candidates are:'
+ @echo '*** bfd.h, libbfd.a, libiconv.a, or libintl.a'
@echo '*** If you need this program, check out the naked-bfd and naked-intl'
@echo '*** sources from sourceware.org. Then, configure and build these'
@echo '*** libraries. Otherwise, you can safely ignore this warning.'