Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2024 10:01:30 -0400
From:      Anish Mistry <amistry@am-productions.com>
To:        desktop@FreeBSD.org
Subject:   textproc/libxml2 with static and shared libraries
Message-ID:  <6254eb13-fec0-4e8a-a736-efa6e8dac1ef@am-productions.com>

next in thread | raw e-mail | index | archive | help
Does anyone have a way (via the ports) to build libxml2 with both the 
static libxml2.a and libxml2.so as most other ports do?  If I try to 
hack the Makefile to build the static library, it disables the shared 
one, but I need both in the install.  If I toggle -DBUILD_SHARED_LIBS=ON 
the static lib won't build.

eg.
OPTIONS_DEFINE=	DOCS ICU MEM_DEBUG READLINE THREAD_ALLOC STATIC
STATIC_CONFIGURE_ON=	--enable-static=yes
STATIC_CMAKE_ON=	-DIconv_IS_BUILT_IN=OFF \
			-DBUILD_SHARED_LIBS=OFF

Thanks,

-- 
Anish Mistry

-- 
Anish



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6254eb13-fec0-4e8a-a736-efa6e8dac1ef>