FreeBSD/Solaris and -lc

Marcus Meissner marcus at jet.franken.de
Mon Apr 1 11:42:32 CST 2002


On Sun, Mar 31, 2002 at 07:47:18PM -0800, Francois Gouget wrote:
> 
>    When I compile Wine on FreeBSD and Solaris I keep getting 'undefined
> sybol' errors for all the C library symbols. So I usually add the
> following to 'configure.ac'.
> 
> Index: configure.ac
> ===================================================================
> RCS file: /home/wine/wine/configure.ac,v
> retrieving revision 1.14
> diff -u -r1.14 configure.ac
> --- configure.ac	31 Mar 2002 19:23:41 -0000	1.14
> +++ configure.ac	31 Mar 2002 20:45:37 -0000
> @@ -77,6 +77,8 @@
>  
>  dnl **** Check for some libraries ****
>  
> +dnl Check for -lc for FreeBSD and Solaris
> +AC_CHECK_LIB(c,getpid)
>  dnl Check for -lm
>  AC_CHECK_LIB(m,sqrt)
>  dnl Check for -li386 for NetBSD and OpenBSD
> 
> 
>    But is it the right eay to do things? What worries me is that I found
> some messages related to libtool that claim that -lc should not be
> explicitly linked in on FreeBSD (and OpenBSD):
> http://mail.gnu.org/pipermail/libtool/2001-November/005782.html

It should not be linked on Linux.

Hmm, what about something like:

    AC_CHECK_FUNC(getpid,,AC_CHECK_LIB(c,getpid))

or similar?

Ciao, Marcus



More information about the wine-devel mailing list