[Bug 961405] Review Request: mingw-openjpeg - MinGW Windows OpenJPEG library
bugzilla at redhat.com
bugzilla at redhat.com
Fri May 10 14:04:18 UTC 2013
Product: Fedora
https://bugzilla.redhat.com/show_bug.cgi?id=961405
greg.hellings at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |greg.hellings at gmail.com
--- Comment #7 from greg.hellings at gmail.com ---
Without some significant manual workarounds I don't believe it's possible to
build both static and shared libraries from a single CMake call. The Debian
packager for one library I keep the CMake files for asked for that
funcitonality and it took some very significant gymnastics as I had to create
separate build targets (e.g. mylib and mylib-static) and then specifically
alter the build name of mylib-static so it would output mylib.a. And this still
runs into major problems building with MSVC as there the static mylib.lib and
the export library mylib.lib will collide (as opposed to our MinGW .a and
.dll.a).
So, likely, you'll need to invoke configure and install twice if you want to
build both dynamic and static. When I just glanced through the openJPEG code I
didn't see the necessary support for building both static and dynamic in a
single call. The differences in the two calls would be minimal. One would
include
-DBUILD_SHARED_LIBS:BOOL=ON
and the other
-DBUILD_SHARED_LIBS:BOOL=OFF
Otherwise, they are probably going to be identical invocations of cmake and
make.
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=OdM1a6xcQ3&a=cc_unsubscribe
More information about the mingw
mailing list