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?

Path csiph.com!feeder.erje.net!1.eu.feeder.erje.net!news.albasani.net!www.openwatcom.org!not-for-mail
From Dave Yeo <daveryeo@gmail.com>
Newsgroups openwatcom.users.c_cpp
Subject Re: Building static libraries with wlink or owcc?
Date Sat, 21 Apr 2018 10:43:56 -0700
Organization OpenWatcom
Lines 39
Message-ID <pbft6m$hum$1@www.openwatcom.org> (permalink)
References <pbeg9f$8ep$1@www.openwatcom.org>
NNTP-Posting-Host 209.52.88.28
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding 7bit
X-Trace www.openwatcom.org 1524332566 18390 209.52.88.28 (21 Apr 2018 17:42:46 GMT)
X-Complaints-To news@www.openwatcom.org
NNTP-Posting-Date Sat, 21 Apr 2018 17:42:46 +0000 (UTC)
User-Agent Mozilla/5.0 (OS/2; Warp 4.5; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
In-Reply-To <pbeg9f$8ep$1@www.openwatcom.org>
Xref csiph.com openwatcom.users.c_cpp:3532

Show key headers only | 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