http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52556

Benda Xu <heroxbd at sohu dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |heroxbd at sohu dot com

--- Comment #4 from Benda Xu <heroxbd at sohu dot com> ---
(In reply to Jakub Jelinek from comment #2)
> Just use -Wl,-dynamic-linker=/whatever/ld.so 

-Wl,-dynamic-linker=/whatever/ld.so cannot be set permanently. It requires a
wrapper to inject such argument all the time, which is ugly.

> or you could use --with-specs configure option.

Builtin specs of GCC is already very complicated (output from gcc-4.7.3
-dumpspecs on amd64):

...

*link:
%{!static:--eh-frame-hdr} %{m32|mx32:;:-m elf_x86_64}                   
%{m32:-m elf_i386}                    %{mx32:-m elf32_x86_64}  
%{shared:-shared}   %{!shared:     %{!static:       %{rdynamic:-export-dynamic}
      %{m32:-dynamic-linker
%{muclibc:/lib/ld-uClibc.so.0;:%{mbionic:/system/bin/linker;:/lib/ld-linux.so.2}}}
      %{m32|mx32:;:-dynamic-linker
%{muclibc:/lib/ld64-uClibc.so.0;:%{mbionic:/system/bin/linker64;:/lib64/ld-linux-x86-64.so.2}}}
      %{mx32:-dynamic-linker
%{muclibc:/lib/ldx32-uClibc.so.0;:%{mbionic:/system/bin/linkerx32;:/libx32/ld-linux-x32.so.2}}}}
    %{static:-static}}

...

writing an equivalent specs with prefixed dynamic linker is horrible.

Please consider sopport dynamic linker prefix by an extra configure option.

Reply via email to