Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > openwatcom.users.c_cpp > #3532

Re: Building static libraries with wlink or owcc?

From Dave Yeo <daveryeo@gmail.com>
Newsgroups openwatcom.users.c_cpp
Subject Re: Building static libraries with wlink or owcc?
Date 2018-04-21 10:43 -0700
Organization OpenWatcom
Message-ID <pbft6m$hum$1@www.openwatcom.org> (permalink)
References <pbeg9f$8ep$1@www.openwatcom.org>

Show all headers | View raw


On 04/20/18 09:57 PM, Johann 'Myrkraverk' Oskarsson wrote:
> Hi all,
>
> I've gotten to the stage in my OpenSSL port where the the makefile is
> trying to build the first library.
>
> The typical generated make file rule is something like
>
> $(O_CRYPTO): $(CRYPTOOBJ)
>         $(RM) $(O_CRYPTO)
>         $(MKLIB) file $(O_CRYPTO) $(CRYPTOOBJ)
>         $(RANLIB) $(O_CRYPTO)
>
> where I have added the "file" directive in the make file generator.
>
> However, if I just add the "name" directive for Wlink before the
> objects, how do I make it comma separated, as I understand the Wlink
> manual to require?
>
> Note: I can easily remove the $(RM) and $(RANLIB) lines, by editing the
> generator; a perl script.  I am not so sure I can easily make it build
> a comma separated list directly in the make file since it just generates
> variable expansions, like you see above.
>
> Is this simpler to do with owcc?  Right now I'm attempting to build a
> static library, and not a DLL on OS/2.  Can I create .LIB files with
> owcc?
>
> Does Wmake have any magic I can use to convert the space separated
> objects into a comma separated list?
>
> Right now I'm trying to get a feel for my options, about how I can
> do this with OpenWatcom, without requiring external tools.  I have
> not seen anything immediately obvious to use, in the Wmake, Wlink
> and owcc manuals.

I've always cheated by using emxomfar.exe which acts much like ar. Note 
that ranlib isn't needed and should be set to something like echo.
Dave

Back to openwatcom.users.c_cpp | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Building static libraries with wlink or owcc? Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2018-04-21 12:57 +0800
  Re: Building static libraries with wlink or owcc? Frank Beythien <fbeythien@gmx.de> - 2018-04-21 09:46 +0200
    Re: Building static libraries with wlink or owcc? Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2018-04-21 20:46 +0800
      Re: Building static libraries with wlink or owcc? Frank Beythien <fbeythien@gmx.de> - 2018-04-21 15:33 +0200
      Re: Building static libraries with wlink or owcc? "Mat Nieuwenhoven" <mnieuw@dontincludethis.zap.a2000.nl> - 2018-04-24 19:33 +0200
  Re: Building static libraries with wlink or owcc? Hans-Bernhard Bröker <broeker@physik.rwth-aachen.de> - 2018-04-21 14:16 +0200
    Re: Building static libraries with wlink or owcc? Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2018-04-21 20:50 +0800
  Re: Building static libraries with wlink or owcc? Dave Yeo <daveryeo@gmail.com> - 2018-04-21 10:43 -0700
    Re: Building static libraries with wlink or owcc? Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2018-04-22 18:41 +0800

csiph-web