[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freeipmi-devel] Major symbol exporting problem
From: |
Ian Zimmerman |
Subject: |
Re: [Freeipmi-devel] Major symbol exporting problem |
Date: |
02 Apr 2004 09:19:47 -0800 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Albert Chu <address@hidden> writes:
> Hmmm, off the top of my head, I guessing no. Wrapping the #ifdef around
> xmalloc will not stop the symbol from being exported. But its worth a
> shot, I'll give it a shot later on today.
>
> There are ways to stop symbols from being exported via the compiler.
> But I don't know if we want to do that ...
>
What library is the one that conflicts? Just libiberty or another?
We could put a check into configure.ac like
LIBS="$LIBS -liberty"
AC_CHECK_FUNCS(xmalloc)
this will define LIBOBJS=xmalloc.o if it is not found, then you can
include it conditionally like
modules=foo.o bar.o $(LIBOBJS)
In fact I think this is The Right Way (TM)