[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] [Fwd: Build glpk as a shared library on Cygwin, MinGW an

From: Jean-Pierre Flori
Subject: Re: [Help-glpk] [Fwd: Build glpk as a shared library on Cygwin, MinGW and similar systems]
Date: Tue, 4 Nov 2014 15:55:42 +0100

Hi again all,

Hopefully, this time my reply will also appear on the help-glpk
archive as I subscribed there.

As far as Marco's patch is concerned, it is fine and work, but passing
-no-undefined directly through LDFLAGS is not the right way to go.
The -no-undefined flag is really meant for libtool, not for the linker.
In fact the proper way to go would be to put it into
something_la_LTFLAGS but this does not work...
So the most usual solution is to put it into library_la_LDFLAGS (which
is a variation of LDFLAGS but meant for libtool).


2014-11-04 14:47 GMT+01:00 Jean-Pierre Flori <address@hidden>:
> Hi all,
> 2014-11-04 14:34 GMT+01:00 Andrew Makhorin <address@hidden>:
>> Hi Heinrich,
>>> I tested with Cygwin64 on Windows Vista.
>> Thank you for testing.
>>> Without the patch no DLL is
>>> built, the GLPK library is statically compiled into glpsol.exe. With the
>>> patch the GLPK library is built as DLL and dynamically linked into
>>> glpsol.exe.
>>> So I suggest to integrate the patch with the next release.
>> Please provide me with a patched (maybe post it to the
>> list?). I don't have cygwin64 and cannot test the script by myself. Is
>> the patched script applicable on both cygwin32 and cygwin64? Thanks.
> You need to patch both and src/
> The patch I posted (largely inspired by what GMP, MPFR, MPC and other
> software do) do what is needed.
> I attached the patched files (and the corresponding patch) on top of
> 4.55 to this message.
> The very same modifications are needed by any system running on
> Windows and using DLLs, that is Cygwin 32 and 64, and all MinGW
> versions.
> Best,
> --
> Jean-Pierre Flori

Jean-Pierre Flori

reply via email to

[Prev in Thread] Current Thread [Next in Thread]