incremental linking without libirc_s

incremental linking without libirc_s

Imagen de apl@carbondesignsystems.com

I'm trying to to an incremental link, passing

-Wl,-Ur

the icpc driver ends up passing -lirc_s to the linux linker, despite my adding

-nostdlib -nodefaultlibs -nostartfiles -i_dynamic

to the icpc command line as well.

Is there ANY way to prevent libirc_s.a from being searched?

Here is the command line I feed icpc, and the output showing the -lirc_s.

[apl]bauxite$ /tools/linux/icc-9.0/bin/icpc -fpic -o
/work/apl/icc9/obj/CarbonBlackBox.pic_o
/work/apl/icc9/obj/CarbonModel.pic_o
/work/apl/icc9/obj/shell/ShellNet.pic_o
/work/apl/icc9/obj/shell/lm_new.o
-i_dynamic -nodefaultlibs -nostartfiles -nostdlib -Wl,-Ur -v

Version 9.0
/tools/linux/icc-9.0/bin/mcpcom -mP1OPT_version=900 -mP1OPT_print_version=FALSE -mP3OPT_use_mspp_call_convention -mCG_use_gas_got_workaround=F "-mGLOB_options_string=-long_double -fpic -o /work/apl/icc9/obj/CarbonBlackBox.pic_o -i_dynamic -nodefaultlibs -nostartfiles -nostdlib -Wl,-Ur -v" -mGLOB_position_independent_code -mGLOB_preemption_model=3 -mGLOB_cxx_limited_range=FALSE -mGLOB_as_output_backup_file_name=/tmp/icpc2WjtJcas_ -mGLOB_machine_model=GLOB_MACHINE_MODEL_IA32_NONE -mIPOPT_activate -mP2OPT_hlo_level=2 -mP2OPT_hlo -mIPOPT_link -mIPOPT_ipo_activate -mIPOPT_ipo_mo_activate -mIPOPT_ipo_mo_nfiles=1 -mIPOPT_source_files_list=/tmp/icpcWz6GlIlst -mIPOPT_link_script_file=/tmp/icpcAYDQsSscript -mIPOPT_global_data -mIPOPT_link_version=2.13.2.1 -mIPOPT_cmdline_objs="/work/apl/icc9/obj/lm_new.o" "-mIPOPT_cmdline_libs="/work/apl/icc9/obj/CarbonModel.pic_o" "/work/apl/icc9/obj/ShellNet.pic_o"" "-mIPOPT_cmdline_link="--eh-frame-hdr" "-dynamic-linker" "/lib/ld-linux.so.2" "-m" "elf_i386" "-o" "/work/apl/icc9/obj/CarbonBlackBox.pic_o" "/work/apl/icc9/obj/CarbonModel.pic_o" "/work/apl/icc9/obj/ShellNet.pic_o" "/work/apl/icc9/obj/lm_new.o" "-Ur" "-L/tools/linux/icc-9.0/lib" "-L/usr/lib/gcc-lib/i386-redhat-linux/3.2/" "-L/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../" "-lirc_s"" -mIPOPT_save_il0 -mIPOPT_il_in_obj -mIPOPT_link_silent -mIPOPT_obj_output_file_name=/tmp/ipo_icpcKlMp7n.o -mGLOB_linker_version=2.13.2.1 -mP3OPT_asm_target=P3OPT_ASM_TARGET_GAS -mGLOB_obj_output_file=/tmp/ipo_icpcKlMp7n.o -mP1OPT_source_file_name=/tmp/ipo_icpcKlMp7n.c /work/apl/icc9/obj/lm_new.o -mIPOPT_object_files=/tmp/icpcUK9xeytxt
ld --eh-frame-hdr -dynamic-linker /lib/ld-linux.so.2 -m elf_i386 -o /work/apl/icc9/obj/CarbonBlackBox.pic_o /work/apl/icc9/obj/lm_new.o /work/apl/icc9/obj/CarbonModel.pic_o /work/apl/icc9/obj/ShellNet.pic_o -Ur -L/tools/linux/icc-9.0/lib -L/usr/lib/gcc-lib/i386-redhat-linux/3.2/ -L/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../ -lirc_s

1 envío / 0 nuevos
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.