]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Add dependencies from the def files to the libraries that generate them
authorMartin Storsjo <martin@martin.st>
Tue, 15 Nov 2011 09:29:58 +0000 (11:29 +0200)
committerSimon Josefsson <simon@josefsson.org>
Wed, 16 Nov 2011 13:25:53 +0000 (14:25 +0100)
This avoids build failures in parallel builds, where builds
could fail with this error message:

make[2]: *** No rule to make target `libgnutls-26.def', needed by `all-am'.  Stop.

There is no direct rules that generate it, but it is generated
as a byproduct when building libgnutls.la. By marking the la
file as a dependency, make won't bail out by not finding the file
until that dependency is built, and at that point, the def file
exists.

Signed-off-by: Simon Josefsson <simon@josefsson.org>
extra/Makefile.am
lib/Makefile.am

index cfcdbd5719b2777519585a4bb61959b317b50f1c..5d6a41b409d4ef477997476ddeb4293018ad124c 100644 (file)
@@ -68,6 +68,7 @@ endif
 if HAVE_LD_OUTPUT_DEF
 libgnutls_openssl_la_LDFLAGS += \
        -Wl,--output-def,libgnutls-openssl-$(DLL_VERSION).def
+libgnutls-openssl-$(DLL_VERSION).def: libgnutls-openssl.la
 defexec_DATA += libgnutls-openssl-$(DLL_VERSION).def
 endif
 endif
index 74258b5f4582eb02cd14fa9b157db8d26fef6717..d944c2f7080e82fa58ca7fad53b57a881c4cdbfa 100644 (file)
@@ -141,6 +141,7 @@ endif
 
 if HAVE_LD_OUTPUT_DEF
 libgnutls_la_LDFLAGS += -Wl,--output-def,libgnutls-$(DLL_VERSION).def
+libgnutls-$(DLL_VERSION).def: libgnutls.la
 defexecdir = $(bindir)
 defexec_DATA = libgnutls-$(DLL_VERSION).def
 DISTCLEANFILES += $(defexec_DATA)