summaryrefslogtreecommitdiffstats
path: root/contrib/elf2dmp
diff options
context:
space:
mode:
authorPeter Maydell2019-07-22 15:07:39 +0200
committerPeter Maydell2019-07-22 15:07:39 +0200
commitddb45afbfbc639365d6c934e4e29f6de5e5e2a0e (patch)
tree70ec794339c83595888e300972cce1b51f108ca5 /contrib/elf2dmp
parentconfigure: Clarify URL to source downloads (diff)
downloadqemu-ddb45afbfbc639365d6c934e4e29f6de5e5e2a0e.tar.gz
qemu-ddb45afbfbc639365d6c934e4e29f6de5e5e2a0e.tar.xz
qemu-ddb45afbfbc639365d6c934e4e29f6de5e5e2a0e.zip
contrib/elf2dmp: Build download.o with CURL_CFLAGS
contrib/elf2dmp has a source file which uses curl/curl.h; although we link the final executable with CURL_LIBS, we forgot to build this source file with CURL_CFLAGS, so if the curl header is in a place that's not already on the system include path then it will fail to build. Add a line specifying the cflags needed for download.o; while we are here, bring the specification of the libs into line with this, since using a per-object variable setting is preferred over adding them to the final executable link line. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: 20190719100955.17180-1-peter.maydell@linaro.org
Diffstat (limited to 'contrib/elf2dmp')
-rw-r--r--contrib/elf2dmp/Makefile.objs3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/elf2dmp/Makefile.objs b/contrib/elf2dmp/Makefile.objs
index e3140f58cf..1505716916 100644
--- a/contrib/elf2dmp/Makefile.objs
+++ b/contrib/elf2dmp/Makefile.objs
@@ -1 +1,4 @@
elf2dmp-obj-y = main.o addrspace.o download.o pdb.o qemu_elf.o
+
+download.o-cflags := $(CURL_CFLAGS)
+download.o-libs := $(CURL_LIBS)