bug-gnu-libiconv
[Top][All Lists]
Advanced

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

Re: [bug-gnu-libiconv] [PATCH] Append the extension to the executables p


From: Bruno Haible
Subject: Re: [bug-gnu-libiconv] [PATCH] Append the extension to the executables properly
Date: Thu, 15 Dec 2016 10:52:36 +0100
User-agent: KMail/4.8.5 (Linux/3.8.0-44-generic; KDE/4.8.5; x86_64; ; )

KO Myung-Hun wrote:
> > Can you please try the attached wrapper script? That is, store it, and
> > run configure as
> >   ./configure CC="/home/ko/os2compile gcc" CPPFLAGS="-Wall"
> > 
> > This wrapper script idea has made it possible to use even MSVC from within
> > the autotools generated Unix-style Makefiles.
> > 
> 
> I tested, I had to change two things.
> First, configure failed at ld check because os2compile printed all
> commands executed and this corrupted outputs expected by configure.
> Second, .exe was appended even if DLL with .dll was generated.

Thanks. Also, I did some fixes regarding quoting, empty arguments, and
arguments that contain newlines. Find the result attached.

But now I found a README.os2 of some package which reads:

-------------------------------------------------------------------------------
Installation on OS/2:

- Requires emx+gcc and a working shell (Bourne shell, Korn shell or GNU bash).

- Set the environment variables CC=gcc CFLAGS="-Zexe" before calling
  `configure'.
-------------------------------------------------------------------------------

The documentation of the -Zexe option:

-Zexe

    If the -Zexe option is present, emxomfld deletes the output file
    (whose name is given on the command line) and adds .exe to the
    output filename.  After calling LINK386, emxomfld creates an empty
    output file (without .exe).  This feature is used for minimizing
    changes to Unixoid makefiles.  See also the -Zexe option of GCC
    and ld.

So it seems that neither your Makefile.in patch nor my 'os2compile' script
is needed. Add you need is to set CFLAGS="-Zexe" before calling configure !!

Bruno

Attachment: os2compile
Description: application/shellscript


reply via email to

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