Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Feb 2002 23:49:39 -0700 (MST)
From:      "M. Warner Losh" <imp@village.org>
To:        sobomax@FreeBSD.ORG
Cc:        jdp@FreeBSD.ORG, deischen@FreeBSD.ORG, jasone@FreeBSD.ORG, hackers@FreeBSD.ORG, jlemon@FreeBSD.ORG
Subject:   Re: Linking libc before libc_r into application causes weird problems
Message-ID:  <20020207.234939.69060047.imp@village.org>
In-Reply-To: <1013147180.73417.2.camel@notebook>
References:  <1013147180.73417.2.camel@notebook>

next in thread | previous in thread | raw e-mail | index | archive | help
Confirmed.  test.c appears to work properly when compiled:

cc -o test test.c -pthread
./test

Generally speaking, if you want to add -lc_r, you are doing things
incorrectly.  I've done way to much building...  In FreeBSD 3.x you
did need to do -lc_r, but that was changed to -pthread in 4.0.

Warner

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020207.234939.69060047.imp>