This is the mail archive of the
mailing list for the Cygwin project.
Re: Some questions about ImageMagick and cygwin
- From: Daniel Reed <n at ml dot org>
- To: cygwin at cygwin dot com
- Date: Sun, 7 Dec 2003 01:52:50 -0500 (EST)
- Subject: Re: Some questions about ImageMagick and cygwin
- Reply-to: cygwin at cygwin dot com
On 2003-12-06T00:56-0500, Charles Wilson wrote:
) -release? If not for every platform, what is the advisability of our
) cygwin maintainer making that change for his cygwin releases? Is there
) a way to do "#if CYGWIN then libMagick_LDFLAGS = -release ..... else
) libMagick_LDFLAGS = -version-info ...." ?
While it seems to be obviated in this case, just for future reference I
thought I'd mention how I do something similar to this in the naim package.
In configure.in I use:
case $host_os in
AC_DEFINE(FAKE_MAIN_STUB, 1, [Define to enable a workaround on Windows for module loading])
AC_DEFINE(DLOPEN_SELF_LIBNAIM_CORE, 1, [Define to dlopen libnaim_core rather than NULL])
The magic part is AM_CONDITIONAL(CYGWIN, ...).
This can be used in Makefile.am as:
libMagick_LDFLAGS = -release ...
libMagick_LDFLAGS = -version-info ...
I use it to do some hideous things with .dll files; as best as I can tell,
dlopen()ed .dll's can't directly access symbols in the .exe that opened
them, but they can access symbols in other .dll files. So, on Cygwin I
compile what is normally "naim" into libnaim_core.dll and create a stub
naim.exe that just loads libnaim_core and executes libnaim_core's main().
Daniel Reed <firstname.lastname@example.org> http://naim-users.org/nmlorg/ http://naim.n.ml.org/
"I don't believe in making something user friendly just for the sake of
being user friendly, though; if you're decreasing the users' available
power, you're not really being all that friendly to them."
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html