[lld] r286451 - [ELF] - Allow separate form for -f (alias for -auxiliary).

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 10 06:52:50 PST 2016


>On 10 November 2016 at 09:07, George Rimar via llvm-commits
><llvm-commits at lists.llvm.org> wrote:
>> Author: grimar
>> Date: Thu Nov 10 08:07:15 2016
>> New Revision: 286451
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=286451&view=rev
>> Log:
>> [ELF] - Allow separate form for -f (alias for -auxiliary).
>>
>> Without that FreeBSD port was failing with next confuxing error:
>> /usr/bin/ld: error: unknown argument: -fstack-protector
>
>That has to be a bug in the port. I am pretty sure they don't want to
>say --auxiliary=stack-protector.
>
>Given that it is an easy mistake to make, I think we are better with
>-f being an error, no?
>
>Cheers,
>Rafael

OK, you right. I supposed that was unlucky field name at first.
I think it is the only port  that "uses" -f. I'll revert then.

Just for reference it was www/mod_jk:

Making all in apache-2.0
gmake[2]: Entering directory '/usr/ports/www/mod_jk/work/tomcat-connectors-1.2.41-src/native/apache-2.0'
/usr/local/share/apr/build-1/libtool --silent --mode=compile cc -I/usr/local/include/apache24 -O2 -pipe  -fstack-protector -fno-strict-aliasing -DHAVE_CONFIG_H -DUSE_APACHE_MD5 -I../common -I ../common  -O2 -pipe -I/usr/local/include -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing  -DHAVE_APR  -I/usr/local/include/apr-1 -I/usr/local/include/apr-1 -O2 -pipe  -fstack-protector -fno-strict-aliasing -DHAVE_CONFIG_H   -c mod_jk.c -o mod_jk.lo
/usr/local/share/apr/build-1/libtool --silent --mode=link cc -I/usr/local/include/apache24 -O2 -pipe  -fstack-protector -fno-strict-aliasing -DHAVE_CONFIG_H -DUSE_APACHE_MD5 -I../common -I ../common  -O2 -pipe -I/usr/local/include -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing  -DHAVE_APR  -I/usr/local/include/apr-1 -I/usr/local/include/apr-1 -O2 -pipe  -fstack-protector -fno-strict-aliasing -DHAVE_CONFIG_H   -Wl,-L-L/usr/local/lib -Wl,-rpath,/usr/local/lib -Wl,-fstack-protector -Wl,-fstack-protector -o mod_jk.la -module -rpath /usr/local/libexec/apache24 -avoid-version mod_jk.lo ../common/jk_ajp12_worker.lo ../common/jk_connect.lo ../common/jk_msg_buff.lo ../common/jk_util.lo ../common/jk_ajp13.lo ../common/jk_pool.lo ../common/jk_worker.lo ../common/jk_ajp13_worker.lo ../common/jk_lb_worker.lo ../common/jk_sockbuf.lo ../common/jk_map.lo ../common/jk_uri_worker_map.lo ../common/jk_ajp14.lo ../common/jk_ajp14_worker.lo ../common/jk_md5.lo ../common/jk_shm.lo ../common/jk_ajp_common.lo ../common/jk_context.lo ../common/jk_url.lo ../common/jk_status.lo
/usr/bin/ld: error: unknown argument: -fstack-protector
/usr/bin/ld: error: unknown argument: -fstack-protector

George.


More information about the llvm-commits mailing list