[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] tools/vtpm: use LDLIBS to pass -lgmp


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Mon, 14 May 2012 16:32:23 +0000
  • Delivery-date: Mon, 14 May 2012 16:32:28 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1336153405 -7200
# Node ID 3314ed4b12bacf134a1e6df8e54c62e1eb864295
# Parent  7d3d3fece2373fccc4ae1252a50619fb082639a1
tools/vtpm: use LDLIBS to pass -lgmp

Linking tpmd will fail with recent toolchains because -lgmp is passed
via LDFLAGS instead of LDLIBS. With this change -lgpm is placed at the
end of the gcc cmdline and linking tpmd succeeds again.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
---


diff -r 7d3d3fece237 -r 3314ed4b12ba tools/vtpm/Makefile
--- a/tools/vtpm/Makefile       Fri May 04 19:38:02 2012 +0200
+++ b/tools/vtpm/Makefile       Fri May 04 19:43:25 2012 +0200
@@ -50,7 +50,8 @@ mrproper:
        mv $(TPM_EMULATOR_NAME) $(VTPM_DIR)
 
        set -e; cd $(VTPM_DIR); \
-       patch -p1 < ../vtpm-0.5.1.patch
+       patch -p1 < ../vtpm-0.5.1.patch; \
+       patch -p1 < ../vtpm-0.5.1-LDLIBS.patch
 
 orig: $(TPM_EMULATOR_TARFILE)
        mkdir $(ORIG_DIR);
diff -r 7d3d3fece237 -r 3314ed4b12ba tools/vtpm/vtpm-0.5.1-LDLIBS.patch
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/vtpm/vtpm-0.5.1-LDLIBS.patch        Fri May 04 19:43:25 2012 +0200
@@ -0,0 +1,12 @@
+diff -Naurp tpm_emulator-0.5.1/tpmd/Makefile tpm_emulator-0.5.1/tpmd/Makefile
+--- tpm_emulator-0.5.1/tpmd/Makefile
++++ tpm_emulator-0.5.1/tpmd/Makefile
+@@ -8,7 +8,7 @@ WFLAGS  := -Wall -Wno-unused -Wpointer-a
+            #WFLAGS  += -Wextra -Wcast-qual -Wmissing-prototypes 
-Wmissing-declarations -Wstrict-aliasing
+ CFLAGS  += $(WFLAGS) -g -I.. -I. -O2 -fno-strict-aliasing
+ CFLAGS  += -I../../../../tools/vtpm_manager/manager
+-LDFLAGS += -lgmp
++LDLIBS  += -lgmp
+ 
+ BINDIR  := /usr/bin/
+ 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.