fuzz: Change how fuzz_certs is built
We mainly do this because we have to create a self-contained executable and it isn't so easy to actually get libtool to link e.g. libgmp statically.
This commit is contained in:
parent
4a0b6d659d
commit
05eeffb2f2
|
@ -1,12 +1,18 @@
|
|||
AM_CPPFLAGS = \
|
||||
CPPFLAGS = @CPPFLAGS@ \
|
||||
-I$(top_srcdir)/src/libstrongswan \
|
||||
-DPLUGINDIR=\""$(abs_top_builddir)/src/libstrongswan/plugins\"" \
|
||||
-DPLUGINS="\"${fuzz_plugins}\""
|
||||
|
||||
noinst_PROGRAMS = fuzz_certs
|
||||
LDFLAGS = @LDFLAGS@ ${libfuzzer} \
|
||||
$(top_builddir)/src/libstrongswan/.libs/libstrongswan.a \
|
||||
-Wl,-Bstatic -lgmp -Wl,-Bdynamic \
|
||||
-stdlib=libc++ -lstdc++
|
||||
|
||||
fuzz_certs_SOURCES = fuzz_certs.c
|
||||
FUZZ_TARGETS=fuzz_certs
|
||||
|
||||
fuzz_certs_LDFLAGS = ${libfuzzer} -lstdc++
|
||||
all-local: $(FUZZ_TARGETS)
|
||||
|
||||
fuzz_certs_LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la
|
||||
CLEANFILES=$(FUZZ_TARGETS)
|
||||
|
||||
fuzz_certs: fuzz_certs.c
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
||||
|
|
Loading…
Reference in New Issue