List Archive

Thread

Thread Index

Message

From: Benjamin Gilbert <bgilbert%backtick.net@localhost>
To: libzip-discuss%nih.at@localhost
Subject: [PATCH] malloc tester build fixes
Date: Sun, 25 Sep 2016 23:51:30 -0500

Don't build malloc tester on Windows.  Fixes build error with MinGW:

    malloc.c:39:19: fatal error: dlfcn.h: No such file or directory

Also build malloc as noinst_ so we don't need to override install.
---
 regress/Makefile.am | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/regress/Makefile.am b/regress/Makefile.am
index 8c79e55..edd9da3 100644
--- a/regress/Makefile.am
+++ b/regress/Makefile.am
@@ -9,12 +9,11 @@ noinst_PROGRAMS= \
        fseek \
        tryopen
 
-pkglib_LTLIBRARIES=    malloc.la
+if !WIN32_HOST
+noinst_LTLIBRARIES=    malloc.la
 malloc_la_SOURCES=     malloc.c
 malloc_la_LDFLAGS=     -module -avoid-version
-
-install-pkglibLTLIBRARIES:
-       @echo not installing shared objects needed only for testing
+endif
 
 EXTRA_DIST= \
        CMakeLists.txt \
-- 
2.7.4

Made by MHonArc.