From owner-freebsd-hackers Sun Mar 9 02:38:42 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA13844 for hackers-outgoing; Sun, 9 Mar 1997 02:38:42 -0800 (PST) Received: from time.cdrom.com (root@time.cdrom.com [204.216.27.226]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA13839 for ; Sun, 9 Mar 1997 02:38:39 -0800 (PST) Received: from time.cdrom.com (jkh@localhost [127.0.0.1]) by time.cdrom.com (8.8.5/8.6.9) with ESMTP id CAA24429 for ; Sun, 9 Mar 1997 02:38:50 -0800 (PST) To: hackers@freebsd.org Subject: gcc -shared as substitute for ld -Bshareable? Date: Sun, 09 Mar 1997 02:38:50 -0800 Message-ID: <24425.857903930@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I've been working with some large software packages which seem to assume that ``gcc -shared ..objs.. -o outfile'' is equivalent to our more familiar ``ld -Bshareable ..objs.. -o outfile'', but the former doesn't work under FreeBSD - a full link is attempted. Examining these build files, it really does look like Linux and SunOS gcc supports -shared flag handling semantics rather different than ours. Any reason we should be gratuitously different? Shall I file a PR against this, or is it someone's idea of a feature? :-) Jordan