This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Finally - some success with cross


I finally am having some success building egcs-1.0 for
host=hppa1.1-hp-hpux9
target=m68k-unknown-coff

The thing kept dying when building target libiberty.  The problem was
that the gcc was built using libgloss.h in the configure.  This does:

 * Don't set the target flags, this is done by the linker script */
#undef LIB_SPEC
#define LIB_SPEC ""

Well, it doesn't install any linker script.  So links weren't working, 
so the "needed" file of target libiberty was incorrect.

I editted <builddir>/gcc/specs to say:*lib:
%{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}

Now the build is proceeding OK.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]