From: Jelte Jansen Date: Mon, 13 Mar 2006 14:34:39 +0000 (+0000) Subject: small mandatory compiletest to see if the library was built correctly X-Git-Tag: release-1.1.0~294 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a402ebefb5c3ec6c8d452da06f5ddfd61eb1c076;p=thirdparty%2Fldns.git small mandatory compiletest to see if the library was built correctly --- diff --git a/Makefile.in b/Makefile.in index c6c4e750..fcae7bc0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -76,7 +76,11 @@ LINK_LIB = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -release $(VERSION) .PHONY: install-h uninstall-h install-lib uninstall-lib .PHONY: confdrill tools-drill -all: lib +all: lib compiletest + +compiletest: + gcc $(srcdir)/compiletest.c -Iinclude .libs/libldns.a -lldns -o compiletest + rm compiletest ./drill/Makefile: ( $(INSTALL) -d drill ; cd drill ; ../$(srcdir)/drill/configure --prefix=$(prefix) --bindir=$(bindir) --mandir=$(mandir) LDFLAGS="-L../.libs" CPPFLAGS="-I.. -I../..") diff --git a/compiletest.c b/compiletest.c new file mode 100644 index 00000000..7f8cde23 --- /dev/null +++ b/compiletest.c @@ -0,0 +1,10 @@ + +#include "ldns/config.h" +#include + +int main(void) { + ldns_rr *rr = ldns_rr_new(); + ldns_rr_free(rr); + return 0; +} +