From owner-freebsd-current Tue Sep 1 12:38:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA10228 for freebsd-current-outgoing; Tue, 1 Sep 1998 12:38:15 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA10223 for ; Tue, 1 Sep 1998 12:38:11 -0700 (PDT) (envelope-from roberto@keltia.freenix.fr) Received: (from uucp@localhost) by frmug.org (8.9.1/frmug-2.3/nospam) with UUCP id VAA07167 for freebsd-current@FreeBSD.ORG; Tue, 1 Sep 1998 21:37:07 +0200 (CEST) (envelope-from roberto@keltia.freenix.fr) Received: by keltia.freenix.fr (VMailer, from userid 101) id BD3F71485; Tue, 1 Sep 1998 20:41:55 +0200 (CEST) Date: Tue, 1 Sep 1998 20:41:55 +0200 From: Ollivier Robert To: freebsd-current@FreeBSD.ORG Subject: Re: XFree86 and ELF Message-ID: <19980901204155.A18859@keltia.freenix.fr> Mail-Followup-To: freebsd-current@FreeBSD.ORG References: <199809011654.SAA14810@yacht.domestic.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.94.4i In-Reply-To: <199809011654.SAA14810@yacht.domestic.de>; from Joachim Kuebart on Tue, Sep 01, 1998 at 06:54:47PM +0200 X-Operating-System: FreeBSD 3.0-CURRENT/ELF ctm#4606 AMD-K6 MMX @ 200 MHz Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG According to Joachim Kuebart: > --- config/cf/bsdLib.rules.orig Mon Aug 31 18:03:14 1998 > +++ config/cf/bsdLib.rules Tue Sep 1 01:15:44 1998 > @@ -153,7 +153,7 @@ > #define ShLibIncludeFile > #endif > #ifndef SharedLibraryLoadFlags > -#define SharedLibraryLoadFlags -shared -Wl,-rpath,$(USRLIBDIR) > +#define SharedLibraryLoadFlags -shared -rpath $(USRLIBDIR) ...and... > #ifndef PositionIndependentCFlags > #define PositionIndependentCFlags -fPIC > @@ -213,7 +213,7 @@ > Concat(lib,libname.so.rev): solist @@\ > $(RM) $@~ @@\ > SONAME=`echo $@ | sed 's/\.[^\.]*$$//'`; \ @@\ > - (cd down; $(CC) -o up/$@~ $(SHLIBLDFLAGS) -Wl,-soname,$$SONAME solist $(REQUIREDLIBS) BaseShLibReqs); \ @@\ > + (cd down; $(LD) -o up/$@~ $(SHLIBLDFLAGS) -soname $$SONAME solist $(REQUIREDLIBS) BaseShLibReqs); \ @@\ Why ? Using "gcc" to build the shared lib should work the same as using "ld". I don't understand the reason... > -#if defined(Lynx) || (defined(SYSV) || defined(SVR4)) && !defined(ACK_ASSEMBLER) || (defined(linux) || defined(__OS2ELF__)) && defined(__ELF__) > +#if defined(Lynx) || (defined(SYSV) || defined(SVR4)) && !defined(ACK_ASSEMBLER) || (defined(__FreeBSD__) || defined(linux) || defined(__OS2ELF__)) && defined(__ELF__) > #define GLNAME(a) a > #else > #define GLNAME(a) CONCAT(_,a) Should not be necessary if you modify GccAsmFlags to include -D__ELF__ in FreeBSD.cf. > #if defined(__GNUC__) && defined(__i386__) > static __inline__ unsigned int reverse_bitorder(data) { > -#if defined(Lynx) || (defined(SYSV) || defined(SVR4)) && !defined(ACK_ASSEMBLER) || (defined(linux) || defined (__OS2ELF__)) && defined(__ELF__) > +#if defined(Lynx) || (defined(SYSV) || defined(SVR4)) && !defined(ACK_ASSEMBLER) || (defined(__FreeBSD__) || defined(linux) || defined (__OS2ELF__)) && defined(__ELF__) > __asm__( > "movl $0,%%ecx\n" > "movb %%al,%%cl\n" Same here. gcc already defines __ELF__. -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 3.0-CURRENT #62: Mon Jul 27 20:47:08 CEST 1998 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message