cross-compiling pcsc-lite - pcsc-wirecheck-gen mis-compiled?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

cross-compiling pcsc-lite - pcsc-wirecheck-gen mis-compiled?

Anthony Foiani

I'm working on adding crypto token to an embedded target.  When I went
to build pcscd, the makefile built pcsc-wirecheck-gen with the cross
compiler, so the binary could not be executed on the native host.

I worked around it with this patch (relative to r6574), but I'm sure
there's a nicer way to do it -- I just don't grok automake and friends
well enough to do it right...

Best regards,
Anthony Foiani
diff --git a/PCSC/src/ b/PCSC/src/
index 36c85f0..03fa5e9 100644
--- a/PCSC/src/
+++ b/PCSC/src/
@@ -6,7 +6,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/src/PCSC
-I$(top_builddir)/src/PCSC \

 sbin_PROGRAMS = pcscd
-noinst_PROGRAMS = testpcsc pcsc-wirecheck pcsc-wirecheck-gen
+noinst_PROGRAMS = testpcsc pcsc-wirecheck

 SERIAL_CONFIG = configfile.l
@@ -104,8 +104,8 @@ update-systemd:
 testpcsc_SOURCES = testpcsc.c
 testpcsc_LDADD =

-pcsc_wirecheck_gen_SOURCES = \
-       pcsc-wirecheck-gen.c
+pcsc-wirecheck-gen :
+       cc -o pcsc-wirecheck-gen pcsc-wirecheck-gen.c -isystem PCSC

 # pcsc_wirecheck_gen_CPPFLAGS := $(LIBPCSCLITE_CFLAGS)

Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
Opensc-devel mailing list
[hidden email]