head 1.2; access; symbols pkgsrc-2015Q1:1.1.0.2 pkgsrc-2015Q1-base:1.1; locks; strict; comment @# @; 1.2 date 2015.04.27.11.03.42; author jperkin; state dead; branches; next 1.1; commitid TeBcSm9u4mYCCdjy; 1.1 date 2015.03.16.11.07.34; author jperkin; state Exp; branches; next ; commitid WkboDwM5d3Xb0Pdy; desc @@ 1.2 log @Fix build on SunOS correctly. Ensure we can link against buildlinked libraries, and ensure the socket libraries are added for both the main library and test programs which use the static library. While here use OPSYSVARS instead of bsd.fast.prefs.mk @ text @$NetBSD: patch-libmodman_test_CMakeLists.txt,v 1.1 2015/03/16 11:07:34 jperkin Exp $ Test program needs zlib. --- libmodman/test/CMakeLists.txt.orig 2010-08-22 14:02:34.000000000 +0000 +++ libmodman/test/CMakeLists.txt @@@@ -59,7 +59,8 @@@@ mm_create_program(symbol symbol) if (WIN32) mm_create_program(symbollnk symbol ws2_32) else() - mm_create_program(symbollnk symbol z) + find_package(ZLIB) + mm_create_program(symbollnk symbol ${ZLIB_LIBRARY}) endif() add_executable(builtin builtin.cpp @ 1.1 log @Find zlib correctly. @ text @d1 1 a1 1 $NetBSD$ @