delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/21/05:29:48

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Ralf Habacker" <Ralf DOT Habacker AT freenet DOT de>
To: "Binutils" <binutils AT sources DOT redhat DOT com>
Cc: "Cygwin" <cygwin AT sources DOT redhat DOT com>
Subject: Problems with generating kde2 dlls under cygwin
Date: Sat, 21 Jul 2001 11:32:36 +0200
Message-ID: <000501c111c8$13aed1c0$b06707d5@BRAMSCHE>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

Hi all,
on compiling kde 2 for cygwin I have problems with the ld -whole-archive
option. Perhaps someone can help me.

The ld manual tells the following about the --whole-archive option:

"For each archive mentioned on the command line after the --whole-archive
option, include every object file in the archive in the link, rather than
searching the archive for the required object files. This is normally used
to turn an archive file into a shared library, forcing every object to be
included in the resulting shared library. This option may be used more than
once.""

This works good in the following manner:

g++ -shared <flags> -Wl,--whole-archive <objs> -Wl,-no-whole-archive
<deplibs>

and if <deplib> are import libs of other shared libraries.
If <deplib> contains a static lib, the used symbols of this lib are always
exported. Can anyone tell, whats goeing wrong and how I could supress this ?

Thank you for any help

Regard
Ralf Habacker


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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