Skip to contentSkip to conversation

libcacard: use LDFLAGS to produce i686 with --cpu=i386

PATCH In review Alon Levy 2 participants 6 messages Nov 28, 2012 – Dec 23, 2012

lore
Share & tools
lore

Alon Levy

author
#0 lore raw

PATCH 1/2 libcacard: use LDFLAGS to produce i686 with --cpu=i386

---
 libcacard/Makefile | 4 ++--
 roms/openbios      | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
libcacard/Makefile +2 -2
index c26aac6..25bc4a0 100644
@@ -15,7 +15,7 @@ QEMU_CFLAGS+=-I../
 libcacard.lib-y=$(patsubst %.o,%.lo,$(libcacard-y))
 
 vscclient: $(libcacard-y) $(QEMU_OBJS) vscclient.o cutils.o
-	$(call quiet-command,$(CC) -o $@ $^ $(libcacard_libs) $(LIBS),"  LINK  $@")
+	$(call quiet-command,$(CC) -o $@ $^ $(libcacard_libs) $(LDFLAGS) $(LIBS),"  LINK  $@")
 
 clean:
 	rm -f *.o */*.o *.d */*.d *.a */*.a *~ */*~ vscclient *.lo */*.lo .libs/* */.libs/* *.la */*.la *.pc
@@ -36,7 +36,7 @@ install-libcacard:
 	@echo "libtool is missing, please install and rerun configure"; exit 1
 else
 libcacard.la: $(libcacard.lib-y) $(QEMU_OBJS_LIB)
-	$(call quiet-command,$(LIBTOOL) --mode=link --quiet --tag=CC $(CC) -rpath $(libdir) -o $@ $^ $(libcacard_libs),"  lt LINK $@")
+	$(call quiet-command,$(LIBTOOL) --mode=link --quiet --tag=CC $(CC) $(LDFLAGS) -rpath $(libdir) -o $@ $^ $(libcacard_libs),"  lt LINK $@")
 
 libcacard_srcpath=$(SRC_PATH)/libcacard
 libcacard.pc: $(libcacard_srcpath)/libcacard.pc.in
roms/openbios +1 -1
index f095c85..d1d2787 160000
@@ -1 +1 @@
-Subproject commit f095c858136896d236931357b8d597f407286f71
+Subproject commit d1d2787f87167edf487a60e61b9168514d5a7434
Signature · 1 line
1.8.0
author
#1 lore raw

PATCH 2/2 libcacard: fix missing symbol in libcacard.so

Before patch:

$ make libcacard.la
$ nm ./libcacard/.libs/libcacard.so.0.0.0 | grep " U " | \
    egrep -v "(g_)|(GLIBC)|(SECMOD)|(PK11)|(CERT)|(NSS)|(PORT)|(PR)"
                 U error_set
---
 libcacard/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libcacard/Makefile +1 -1
index 25bc4a0..7bce286 100644
@@ -7,7 +7,7 @@ libcacard_includedir=$(includedir)/cacard
 $(call set-vpath, $(SRC_PATH))
 
 # objects linked into a shared library, built with libtool with -fPIC if required
-QEMU_OBJS=$(oslib-obj-y) qemu-timer-common.o $(trace-obj-y) $(stub-obj-y)
+QEMU_OBJS=$(oslib-obj-y) qemu-timer-common.o error.o $(trace-obj-y) $(stub-obj-y)
 QEMU_OBJS_LIB=$(patsubst %.o,%.lo,$(QEMU_OBJS))
 
 QEMU_CFLAGS+=-I../
Signature · 1 line
1.8.0
#2 lore raw
In reply to Alon Levy

Il 28/11/2012 10:16, Alon Levy ha scritto:

roms/openbios line 1

Quoted 7 lines
roms/openbios +1 -1
index f095c85..d1d2787 160000
@@ -1 +1 @@
-Subproject commit f095c858136896d236931357b8d597f407286f71
+Subproject commit d1d2787f87167edf487a60e61b9168514d5a7434

This is probably unwanted.

Paolo

author
#3 lore raw
Quoted 10 lines

Il 28/11/2012 10:16, Alon Levy ha scritto:

roms/openbios line 1

Quoted 7 lines
roms/openbios +1 -1
index f095c85..d1d2787 160000
@@ -1 +1 @@
-Subproject commit f095c858136896d236931357b8d597f407286f71
+Subproject commit d1d2787f87167edf487a60e61b9168514d5a7434

This is probably unwanted.

Yes, my bad. I'll drop it in the pull request.

Quoted 4 lines

Paolo

#4 lore raw

Il 28/11/2012 10:53, Alon Levy ha scritto:

Quoted 10 lines
Quoted 10 lines

Il 28/11/2012 10:16, Alon Levy ha scritto:

Quoted 9 lines
Quoted 7 lines

roms/openbios line 1

Quoted 7 lines
roms/openbios +1 -1
index f095c85..d1d2787 160000
@@ -1 +1 @@
-Subproject commit f095c858136896d236931357b8d597f407286f71
+Subproject commit d1d2787f87167edf487a60e61b9168514d5a7434

This is probably unwanted.

Quoted 2 lines

Yes, my bad. I'll drop it in the pull request.

Are you going to send it soon?

Paolo

author
#5 lore raw
Quoted 11 lines · Paolo Bonzini

Il 28/11/2012 10:53, Alon Levy ha scritto:

Quoted 10 lines
Quoted 10 lines

Il 28/11/2012 10:16, Alon Levy ha scritto:

Quoted 9 lines
Quoted 7 lines

roms/openbios line 1

Quoted 7 lines
roms/openbios +1 -1
index f095c85..d1d2787 160000
@@ -1 +1 @@
-Subproject commit f095c858136896d236931357b8d597f407286f71
+Subproject commit d1d2787f87167edf487a60e61b9168514d5a7434

This is probably unwanted.

Quoted 4 lines
Quoted 2 lines

Yes, my bad. I'll drop it in the pull request.

Are you going to send it soon?

I didn't manage to do this, I guess your new series includes this? I'll try to review it.

Quoted 2 lines

Paolo