On Wednesday, April 30, 2014 12:56:20 AM Jan Engelhardt wrote:
> On Tuesday 2014-04-29 23:37, Paul Moore wrote:
> >+noinst_LIBRARIES = libseccomp.a
> >+
> >+libseccomp_a_SOURCES = ${SOURCES}
> >+libseccomp_a_CFLAGS = -fPIC
> >+
> >
> > lib_LTLIBRARIES = libseccomp.la
> 
> you need
> 
>  libseccomp_a_CFLAGS = ${AM_CFLAGS} -fPIC
> 
> >--- a/tests/Makefile.am
> >+++ b/tests/Makefile.am
> >@@ -1,7 +1,7 @@
> >
> > # -*- Makefile -*-
> > 
> > AM_LDFLAGS = -static
> >
> >-LDADD = util.la ../src/libseccomp.la
> >+LDADD = util.la ../src/libseccomp.a
> >
> > check_LTLIBRARIES = util.la
> > util_la_SOURCES = util.c util.h
> >
> >diff --git a/tools/Makefile.am b/tools/Makefile.am
> >index d74c07f..0c13880 100644
> >--- a/tools/Makefile.am
> >+++ b/tools/Makefile.am
> >@@ -7,7 +7,7 @@ util_la_LDFLAGS = -module
> >
> > bin_PROGRAMS    = scmp_sys_resolver
> > noinst_PROGRAMS = scmp_arch_detect scmp_bpf_disasm scmp_bpf_sim
> >
> >-scmp_sys_resolver_LDADD   = ../src/libseccomp.la
> >-scmp_arch_detect_LDADD    = ../src/libseccomp.la
> >+scmp_sys_resolver_LDADD   = ../src/libseccomp.a
> >+scmp_arch_detect_LDADD    = ../src/libseccomp.a
> >
> > scmp_bpf_disasm_LDADD = util.la
> > scmp_bpf_sim_LDADD = util.la
> 
> If you want to build the tests with static, you can use
> 
>  scmp_sys_resolver_LDADD   = ../src/libseccomp.la
>  scmp_sys_resolver_LDFLAGS = -static
> 
> (provided that ./configure was not called with --disable-static, in
> which case the user does not want static anyway.)

I always want the tests to be built with the static library, regardless of the 
./configure options, so we don't accidentally link with the systems 
libseccomp.  Is there a way to do that with libseccomp.la?

-- 
paul moore
security and virtualization @ redhat


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
libseccomp-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libseccomp-discuss

Reply via email to