Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Dec 2015 21:19:41 +0100
From:      Ed Schouten <ed@nuxi.nl>
To:        Colin Percival <cperciva@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r292723 - in head: lib/libc share/mk
Message-ID:  <CABh_MKmMT6EuKMPOan=ibL_J3zbSPSVFk5eAbuEoNr_hjBNq8Q@mail.gmail.com>
In-Reply-To: <201512251129.tBPBTIZp058825@repo.freebsd.org>
References:  <201512251129.tBPBTIZp058825@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Colin,

First of all: I Am Not A Linker Expert.

2015-12-25 12:29 GMT+01:00 Colin Percival <cperciva@freebsd.org>:
>   Make libxnet.so a symlink to libc.so.  This makes `-lxnet` a no-op, as
>   POSIX requires for the c99 compiler.

I seem to remember I had some issues in the past where I was linking
against libc explicitly. Maybe it had something to do with linking
both against -lpthread and -lc, but if you pass in -lc later on the
command line, libc overrides the symbols that have to be provided by
-lpthread?

If that's (still) the case, would it make sense to just provide
libxnet in the form of an empty .a file instead?

-- 
Ed Schouten <ed@nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717



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