From owner-freebsd-hackers Fri Oct 16 18:14:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA02358 for freebsd-hackers-outgoing; Fri, 16 Oct 1998 18:14:24 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from zippy.dyn.ml.org (sf3-98.ppp.wenet.net [206.15.84.98]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA02227 for ; Fri, 16 Oct 1998 18:13:52 -0700 (PDT) (envelope-from garbanzo@hooked.net) Received: from localhost (garbanzo@localhost) by zippy.dyn.ml.org (8.9.1/8.8.8) with SMTP id SAA04047; Fri, 16 Oct 1998 18:14:56 -0700 (PDT) (envelope-from garbanzo@hooked.net) X-Authentication-Warning: zippy.dyn.ml.org: garbanzo owned process doing -bs Date: Fri, 16 Oct 1998 18:14:55 -0700 (PDT) From: Alex Zepeda X-Sender: garbanzo@zippy.dyn.ml.org To: Jacques Vidrine cc: Peter Wemm , hackers@FreeBSD.ORG Subject: Re: ld and -soname In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 16 Oct 1998, Jacques Vidrine wrote: > MM, that won't solve the problem which I'm trying to solve. > I want an ``easy fix'' for the Makefiles in the world that > have something like > > libfoobar.so.${VERSION}: ${OBJS} > ${LD} ${LDFLAGS} -o libfoobar.so.${VERSION} ${OBJS} > > I can't very well put -soname in LDFLAGS. Yes you can. When you use gcc -Wl,-soname -Wl,libfoo.so.1 you tell gcc to pass -soname libfoo.so.1 to ld. With FreeBSD's gcc, you can use gcc -soname, but this is rather unportable. - alex | "Contrary to popular belief, penguins are not the salvation of modern | | technology. Neither do they throw parties for the urban proletariat." | | Powered by FreeBSD http://www.freebsd.org/ | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message