svn commit: r310789 - head/lib/libpam/static_libpam

Ed Maste emaste at freebsd.org
Fri Dec 30 13:39:32 UTC 2016


On 29 December 2016 at 19:59, Ravi Pokala <rpokala at mac.com> wrote:
>
> I'm a little confused - the original version had to have had a compile-only step to generate the object first, before running the link-only operation against the object. The new code replaces the link-only operation with a compile+link operation. Shouldn't the pre-existing compile-only operation be removed, since the new compile+link operation supersedes it?

Hi Ravi,

This change:

>> -     ${LD} -o ${.TARGET} -r --whole-archive ${.ALLSRC}
>> +     ${CC} -nostdlib ${CFLAGS} -o ${.TARGET} -r -Wl,--whole-archive ${.ALLSRC}

is not actually compiling, it's just invoking the compiler driver to
in turn invoke the linker. The input in ${.ALLSRC} is still a
collection of object files.


More information about the svn-src-all mailing list