delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/23/18:45:37

From: Robert Hoehne <robert DOT hoehne AT gmx DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: 2 and more libraries in one project
Date: Tue, 23 Dec 1997 17:37:59 +0100
Organization: none provided
Lines: 41
Message-ID: <349FE8E7.4599627E@gmx.net>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 971222192901 DOT 12237B-100000 AT is> <349F4E38 DOT 7439 AT cs DOT com>
NNTP-Posting-Host: isdn70.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 schrieb:
> 
> The '-(' and '-)' options are what control the library grouping.  The
> only problem is that I don't know how you could get RHIDE to recognize
> and construct a correct command line for the linker using this syntax.

At first you have to change the RHIDE link spec (the next version will
have this changed) by adding the following to your global/local
rhide.env file:

RHIDE_COMPILE_LINK=$(RHIDE_LD) $(RHIDE_LIBDIRS) $(C_EXTRA_FLAGS) -o \ 
$(OUTFILE)\$(OBJFILES) $(LIBRARIES) $(RHIDE_LIBS) $(LDFLAGS)
$(RHIDE_LDFLAGS)

NOTE: This should be written on _ONE_ line _WITHOUT_ the \

and then you can put in the "Options/Linker options"

-( -lfoo1 -lfoo2 -)

> P.S.:  Is there a difference in functionality between gcc's '-Xlinker
> OPTION' and '-Wl,OPTION' switches, except for the latter's splitting of
> parameters at commas?

There should be no difference in functionality, but for me it is betther
to create the linker options with

$(addprefix -Xlinker ,$(LD_EXTRA_FLAGS))

instead of creating a string, which contains the commas, since the
commas hava a special meaning in the RHIDE specs (and the corresponding
GNU-make string-functions).

Robert
-- 
******************************************************
* email:   Robert Hoehne <robert DOT hoehne AT gmx DOT net>     *
* Post:    Am Berg 3, D-09573 Dittmannsdorf, Germany *
* WWW:     http://www.tu-chemnitz.de/~sho/rho        *
******************************************************

- Raw text -


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