-nostdlib didn't link even with startfiles, which we needs for initialize_before() & co.

Soften to -nodefaultlibs link flag, so, which should have been in first place...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6487 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin 2004-02-03 11:19:57 +00:00
parent f80b17f6ff
commit 504447b3ca
2 changed files with 2 additions and 15 deletions

View File

@ -4,7 +4,7 @@ UsePrivateHeaders net ;
{
# Default libs include BeOS R5 libnet.so, something we don't want here!
LINKFLAGS on libnet.so = [ on libnet.so return $(LINKFLAGS) ] -nostdlib ;
LINKFLAGS on libnet.so = [ on libnet.so return $(LINKFLAGS) ] -nodefaultlibs ;
}
Depends libnet.so : install_network_etc_files ;

View File

@ -29,22 +29,9 @@ int _socket_interrupt(void);
int _netconfig_find(void);
/* These should probably be moved to a seperate file as they
* are unique to the library as a whole...
*/
_EXPORT void _init()
{
h_errno_tls = tls_allocate();
}
_EXPORT void _fini()
{
}
_EXPORT void initialize_before(void)
{
h_errno_tls = tls_allocate();
}
_EXPORT void terminate_after(void)