www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/13/12:52:32

From: Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT tu-chemnitz DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Involving non statndart LIB into project ?
Date: Mon, 13 Jan 1997 11:00:44 +0100
Organization: TU Chemnitz-Zwickau
Lines: 40
Message-ID: <32DA07CC.76FE@Mathematik.tu-chemnitz.de>
References: <32D35000 DOT C0C AT post DOT comstar DOT ru> <32D482E1 DOT 42AB AT cs DOT com>
NNTP-Posting-Host: errno.hrz.tu-chemnitz.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

John M. Aldrich wrote:
> 
> To Robert:  Perhaps RHIDE could allow users to enter full library names
> and translate them?
Since RHIDE uses so called specs for (in this case) linking, it would
be possible. Currently the libraries from the libraries dialog are
are customize to a commandline with

$(addprefix -l,$(LIBS))

If I change it to

$(subst -llib,-l,$(subst .a,,$(addprefix -l,$(LIBS))))

The problem would be solved, but this has a little side effect.
If you have a library 'liblib.a' and typed in the libraries only
the 'lib' this will not work and so I think
it's not a good idea to do this, or??

BTW: You can test the above also without recompiling RHIDE. Simply
set the environment variable $(RHIDE_LIBS) to the above. Add to the
djgpp.env file:

[rhide]
RHIDE_LIBS=$(subst -llib,-l,$(subst .a,,$(addprefix -l,$(LIBS))))

BTW: The above is not tested by me but it should work. For more
information about the specs read the RHIDE doc or create a makefile
from within RHIDE and look at the beginning of the makefile, there
are defined all the variables for compiling, which are also used
by RHIDE.

Robert
-- 
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post:    Am Berg 3, D-09573 Dittmannsdorf                     *
* e-Mail:  Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE              *
* WWW:     http://www.tu-chemnitz.de/~rho                       *
*****************************************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019