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
Greetings.

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/Makefile.am b/PCSC/src/Makefile.am
index 36c85f0..03fa5e9 100644
--- a/PCSC/src/Makefile.am
+++ b/PCSC/src/Makefile.am
@@ -6,7 +6,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/src/PCSC
-I$(top_builddir)/src/PCSC \
 lib_LTLIBRARIES = libpcsclite.la

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

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

-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:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Opensc-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opensc-devel