Date: Tue, 1 Sep 1998 20:41:55 +0200 From: Ollivier Robert <roberto@keltia.freenix.fr> To: freebsd-current@FreeBSD.ORG Subject: Re: XFree86 and ELF Message-ID: <19980901204155.A18859@keltia.freenix.fr> In-Reply-To: <199809011654.SAA14810@yacht.domestic.de>; from Joachim Kuebart on Tue, Sep 01, 1998 at 06:54:47PM %2B0200 References: <Pine.BSF.4.02.9808311915090.27868-100000@europa.novastar.com> <199809011654.SAA14810@yacht.domestic.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <bsdLib.tmpl>
> #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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980901204155.A18859>
