From: Takashi Iwai Subject: Re: [patch/rfc] add support for hosts that have custom symbol prefixes Date: Fri, 08 Sep 2006 15:53:31 +0200 Message-ID: References: <200609072047.01314.vapier@gentoo.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200609072047.01314.vapier@gentoo.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Mike Frysinger Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Thu, 7 Sep 2006 20:47:00 -0400, Mike Frysinger wrote: > > some architectures, like Blackfin, have a prefix added to all symbols (in our > case it's historical baggage) > > while normally packages shouldnt care, when code starts mixing assembler with > C (like symbol versioning), you need to dip down into the inner details. > find attached a patch which queries gcc for the prefix (all gcc toolchains > have a builtin define of __USER_LABEL_PREFIX__) and then automatically has > asm() constructs utilize this > > since most targets define __USER_LABEL_PREFIX__ to nothing, hopefully this > shouldnt cause any problems :) So, the current build doesn't work for such architectures with __USER_LABEL_PREFIX__? The change you did basically looks OK to me... > diff -r 46221e609f45 include/alsa-symbols.h > --- a/include/alsa-symbols.h Wed Sep 06 14:39:01 2006 +0200 > +++ b/include/alsa-symbols.h Thu Sep 07 20:45:45 2006 -0400 > @@ -22,6 +22,14 @@ > #ifndef __ALSA_SYMBOLS_H > #define __ALSA_SYMBOLS_H > > +#ifdef __USER_LABEL_PREFIX__ > +# define __SYMBOL_PREFIX __USER_LABEL_PREFIX__ > +#else > +# define __SYMBOL_PREFIX > +#endif > + > +#include "local.h" This inclusion looks superfluous. This file itself is included from local.h. Takashi ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642