EnvironmentSetup/AmigaOS/dumpspecs

Back to Amiga OS setup

Below, the result of : gcc -dumpspecs


 * This will be used at several places, first to allow and, second to improve the build.
 * Other case of use: the cross-compiler should use the same flags.

%(asm_cpu) %{.s: %{mregnames} %{mno-regnames}} %{.S: %{mregnames} %{mno-regnames}} %{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} %{mrelocatable} %{mrelocatable-lib} %{fpic|fpie|fPIC|fPIE:-K PIC} %{memb|msdata|msdata=eabi: -memb} %{mlittle|mlittle-endian:-mlittle;  mbig|mbig-endian      :-mbig;      mcall-aixdesc |	     mcall-freebsd | mcall-netbsd |	     mcall-openbsd |	     mcall-linux   |	     mcall-gnu             :-mbig; mcall-i960-old       :-mlittle}
 * asm:

%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}
 * asm_debug:


 * asm_final:

%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}
 * asm_options:

%{!S:-o %|.s | as %(asm_options) %|.s %A }
 * invoke_as:

%{posix: -D_POSIX_SOURCE} %(cpp_os_default)
 * cpp:

%(cpp_unique_options) %1 %{m*} %{std*&ansi&trigraphs} %{W*&pedantic*} %{w} %{f*} %{g*:%{!g0:%{!fno-working-directory:-fworking-directory}}} %{O*} %{undef} %{save-temps:-fpch-preprocess}
 * cpp_options:

%{d*}
 * cpp_debug_options:

%{C|CC:%{!E:%eGCC does not support -C or -CC without -E}} %{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*&F*} %{P} %I %{MD:-MD %{!o:%b.d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}} %{remap} %{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %{fmudflap:-D_MUDFLAP -include mf-runtime.h} %{fmudflapth:-D_MUDFLAP -D_MUDFLAPTH -include mf-runtime.h} %{E|M|MM:%W{o*}}
 * cpp_unique_options:

cc1 -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}
 * trad_capable_cpp:

%{G*} %{mlittle|mlittle-endian: %(cc1_endian_little); mbig  |mbig-endian   : %(cc1_endian_big); mcall-aixdesc |	   mcall-freebsd |	    mcall-netbsd  |	    mcall-openbsd | mcall-linux  |	    mcall-gnu             : -mbig %(cc1_endian_big); mcall-i960-old       : -mlittle %(cc1_endian_little);                          : %(cc1_endian_default)} %{meabi: %{!mcall-*: -mcall-sysv }} %{!meabi: %{!mno-eabi:    %{mrelocatable: -meabi } %{mcall-freebsd: -mno-eabi }    %{mcall-i960-old: -meabi }     %{mcall-linux: -mno-eabi } %{mcall-gnu: -mno-eabi }    %{mcall-netbsd: -mno-eabi }     %{mcall-openbsd: -mno-eabi }}} %{msdata: -msdata=default} %{mno-sdata: -msdata=none} %{!mbss-plt: %{!msecure-plt: %(cc1_secure_plt_default)}} %{profile: -p}
 * cc1:

%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}} %{g*} %{O*} %{W*&pedantic*} %{w} %{std*&ansi&trigraphs} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} %{--help:--help} %{--target-help:--target-help} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*} %{fmudflap|fmudflapth:-fno-builtin -fno-merge-constants} %{coverage:-fprofile-arcs -ftest-coverage}
 * cc1_options:


 * cc1plus:

%G %L %G
 * link_gcc_c_sequence:

%{fstack-protector|fstack-protector-all:-lssp_nonshared -lssp}
 * link_ssp:

%{mcrt=clib2|mcrt=clib2-ts: %(endfile_clib2); mcrt=ixemul: %(endfile_ixemul); mcrt=libnix: %(endfile_libnix); mcrt=newlib: %(endfile_newlib); mcrt=default|!mcrt=*: %(endfile_amiga_default); : %eInvalid C runtime library}
 * endfile:

%{!static:--eh-frame-hdr} --defsym __amigaos4__=1 %{!shared: %{!use-dynld: -Bstatic}} -q -d %{h*} %{v:-V} %{G*} %{Wl,*:%*} %{YP,*} %{R*} %{Qy:} %{!Qn:-Qy} %(link_shlib) %(link_text) %{mbaserel: %{msdata|msdata=default|msdata=sysv: %e-mbaserel and -msdata options are incompatible}} %{mcrt=clib2|mcrt=clib2-ts: %(link_clib2); mcrt=ixemul: %(link_ixemul); mcrt=libnix: %(link_libnix); mcrt=newlib: %(link_newlib); mcrt=default|!mcrt=*: %(link_amiga_default); : %eInvalid C runtime library} -L%(base_sdk)local/common/lib%(lib_subdir_type) %{newlib: %e-newlib is obsolete, use -mcrt=newlib instead}
 * link:

--start-group -lc --end-group
 * lib:

%{static: %{fmudflap|fmudflapth: --wrap=malloc --wrap=free --wrap=calloc --wrap=realloc - -wrap=mmap --wrap=munmap --wrap=alloca} %{fmudflapth: --wrap=pthread_create}} %{fmudflap|fmudflapth: --wrap=main}
 * mfwrap:

%{fmudflap|fmudflapth: -export-dynamic}
 * mflib:


 * link_gomp:

%{static|static-libgcc: %{!use-dynld: -lgcc -lgcc_eh} %{use-dynld: -lgcc} } %{!static:%{!static-libgcc:%{!shared:%{!shared-libgcc: %{!use-dynld: -lgcc -lgcc_eh} %{use-dynld: -lgcc}}%{shared-libgcc:-lgcc}}%{shared:%{shared-libgcc:-lgcc}%{!shared-libgcc:-lgcc}}}}
 * libgcc:

%{mcrt=clib2|mcrt=clib2-ts: %(startfile_clib2); mcrt=ixemul: %(startfile_ixemul); mcrt=libnix: %(startfile_libnix); mcrt=newlib: %(startfile_newlib); mcrt=default|!mcrt=*: %(startfile_amiga_default); : %eInvalid C runtime library}
 * startfile:


 * switches_need_spaces:

0
 * cross_compile:

4.2.4
 * version:

. ;
 * multilib:

mbig mcall-sysv
 * multilib_defaults:


 * multilib_extra:


 * multilib_matches:


 * multilib_exclusions:


 * multilib_options:

collect2
 * linker:

%D
 * link_libgcc:


 * md_exec_prefix:


 * md_startfile_prefix:


 * md_startfile_prefix_1:


 * startfile_prefix_spec:

--sysroot=%R
 * sysroot_spec:


 * sysroot_suffix_spec:


 * sysroot_hdrs_suffix_spec:


 * cpp_default:

%{!mcpu*:  %{mpower: %{!mpower2: -mpwr}}   %{mpower2: -mpwrx}   %{mpowerpc64*: -mppc64} %{!mpowerpc64*: %{mpowerpc*: -mppc}}  %{mno-power: %{!mpowerpc*: -mcom}} %{!mno-power: %{!mpower*: %(asm_default)}}} %{mcpu=common: -mcom} %{mcpu=power: -mpwr} %{mcpu=power2: -mpwrx} %{mcpu=power3: -mppc64} %{mcpu=power4: -mpower4} %{mcpu=power5: -mpower4} %{mcpu=powerpc: -mppc} %{mcpu=rios: -mpwr} %{mcpu=rios1: -mpwr} %{mcpu=rios2: -mpwrx} %{mcpu=rsc: -mpwr} %{mcpu=rsc1: -mpwr} %{mcpu=rs64a: -mppc64} %{mcpu=401: -mppc} %{mcpu=403: -m403} %{mcpu=405: -m405} %{mcpu=405fp: -m405} %{mcpu=440: -m440} %{mcpu=440fp: -m440} %{mcpu=505: -mppc} %{mcpu=601: -m601} %{mcpu=602: -mppc} %{mcpu=603: -mppc} %{mcpu=603e: -mppc} %{mcpu=ec603e: -mppc} %{mcpu=604: -mppc} %{mcpu=604e: -mppc} %{mcpu=620: -mppc64} %{mcpu=630: -mppc64} %{mcpu=740: -mppc} %{mcpu=750: -mppc} %{mcpu=G3: -mppc} %{mcpu=7400: -mppc -maltivec} %{mcpu=7450: -mppc -maltivec} %{mcpu=G4: -mppc -maltivec} %{mcpu=801: -mppc} %{mcpu=821: -mppc} %{mcpu=823: -mppc} %{mcpu=860: -mppc} %{mcpu=970: -mpower4 -maltivec} %{mcpu=G5: -mpower4 -maltivec} %{mcpu=8540: -me500} %{maltivec: -maltivec}
 * asm_cpu:

-mppc
 * asm_default:

/GCC/
 * base_gcc:

/SDK/
 * base_sdk:

%{mcrt=clib2|mcrt=clib2-ts: %(cpp_clib2); mcrt=ixemul: %(cpp_ixemul); mcrt=libnix: %(cpp_libnix); mcrt=newlib: %(cpp_newlib); mcrt=default|!mcrt=*: %{mcrt=default|!nostdinc: %(cpp_amiga_default)}; : %eInvalid C runtime library} -isystem %(base_sdk)include/include_h -isystem %(base_sdk)include/netinclude -isystem %(base_sdk)local/common/include %{mbaserel: %{msdata|msdata=default|msdata=sysv: %e-mbaserel and -msdata options are incompatible}} %{newlib: %e-newlib is obsolete, use -mcrt=newlib instead}
 * cpp_os_default:

%{mbaserel:/baserel; msdata|msdata=default|msdata=sysv:/small-data}%{msoft-float:/soft-float}
 * lib_subdir_type:

%{mcrt=default|!mcrt=*:%<mcrt=default -mcrt=newlib} %(cpp_newlib)
 * cpp_amiga_default:

%(link_newlib)
 * link_amiga_default:

%(startfile_newlib)
 * startfile_amiga_default:

%(endfile_newlib)
 * endfile_amiga_default:

-isystem %(base_sdk)clib2/include -isystem %(base_sdk)local/clib2/include
 * cpp_clib2:

%{mcrt=clib2-ts:lib.threadsafe; :lib}%(lib_subdir_type)
 * lib_subdir_clib2:

-L%(base_sdk)clib2/%(lib_subdir_clib2) -L%(base_gcc)lib/gcc/ppc-amigaos/%(version)/%{mcrt=clib2-ts:clib2-ts; :clib2}/lib%(lib_subdir_type) -L%(base_sdk)local/clib2/%(lib_subdir_clib2)
 * link_clib2:

%(base_sdk)clib2/%{mcrt=clib2-ts:lib.threadsafe; :lib}%{!msoft-float:%(lib_subdir_type)}/crtbegin.o %(base_sdk)clib2/%{mcrt=clib2-ts:lib.threadsafe; :lib}%{!msoft-float:%(lib_subdir_type)}/crt0.o
 * startfile_clib2:

%(base_sdk)clib2/%{mcrt=clib2-ts:lib.threadsafe; :lib}%{!msoft-float:%(lib_subdir_type)}/crtend.o
 * endfile_clib2:

-isystem %(base_sdk)ixemul/include -isystem %(base_sdk)local/ixemul/include
 * cpp_ixemul:

lib%(lib_subdir_type)
 * lib_subdir_ixemul:

-L%(base_sdk)ixemul/%(lib_subdir_ixemul) -L%(base_gcc)lib/gcc/ppc-amigaos/%(version)/ixemul/%(lib_subdir_ixemul) -L%(base_sdk)local/ixemul/%(lib_subdir_ixemul)
 * link_ixemul:

%(base_sdk)ixemul/%(lib_subdir_ixemul)/crtbegin.o
 * startfile_ixemul:

%(base_sdk)ixemul/%(lib_subdir_ixemul)/crtend.o
 * endfile_ixemul:

-isystem %(base_sdk)libnix/include -isystem %(base_sdk)local/libnix/include
 * cpp_libnix:

lib%(lib_subdir_type)
 * lib_subdir_libnix:

-L%(base_sdk)libnix/%(lib_subdir_libnix) -L%(base_gcc)lib/gcc/ppc-amigaos/%(version)/libnix/%(lib_subdir_libnix) -L%(base_sdk)local/libnix/%(lib_subdir_libnix)
 * link_libnix:

%(base_sdk)libnix/%(lib_subdir_libnix)/crtbegin.o
 * startfile_libnix:

%(base_sdk)libnix/%(lib_subdir_libnix)/crtend.o
 * endfile_libnix:

-isystem %(base_sdk)newlib/include -isystem %(base_sdk)local/newlib/include
 * cpp_newlib:

lib%(lib_subdir_type)
 * lib_subdir_newlib:

-L%(base_sdk)newlib/%(lib_subdir_newlib) -L%(base_gcc)lib/gcc/ppc-amigaos/%(version)/newlib/%(lib_subdir_newlib) -L%(base_sdk)local/newlib/%(lib_subdir_newlib)
 * link_newlib:

%{shared: %(base_sdk)newlib/%(lib_subdir_newlib)/shcrtbegin.o} %{!shared: %(base_sdk)newlib/%(lib_subdir_newlib)/crtbegin.o}
 * startfile_newlib:

%{shared: %(base_sdk)newlib/%(lib_subdir_newlib)/shcrtend.o} %{!shared: %(base_sdk)newlib/%(lib_subdir_newlib)/crtend.o}
 * endfile_newlib:


 * link_text:

%{shared:-shared -dy --defsym __dynld_version__=1} %{!shared: %{static:-static}} %{use-dynld: -dy}
 * link_shlib:

%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:   %(linker) %l %{pie:-pie} %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r}   %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}}   %{static:} %{L*} %(mfwrap) %(link_libgcc) %o %{fopenmp:%:include(libgomp.spec)%(link_gomp)} %(mflib) %{fprofile-arcs|fprofile-generate|coverage:-lgcov} %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %(link_gcc_c_sequence)}} %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}
 * link_command: