fpcmkcfg doen not add -Fl to GCC directory
Original Reporter info from Mantis: denial
-
Reporter name: Daniel Glöckner
Original Reporter info from Mantis: denial
- Reporter name: Daniel Glöckner
Description:
The fpcmkcfg utility contains a function GetDefaultGCCDir to add a -Fl line pointing to the GCC directory on x86 and PowerPC. But that line needs to be added on all architectures to find crtbegin.o and crtend.o, like it is done on {Free,Open,Net}BSD. PowerPC and x86 are special only because they have biarch toolchains. (Note that an AArch64 system might also be biarch, but one has to use separate GCC toolchains to build applications for the AArch64 and ARM architectures.)
Linking ../game/ultrastardx
ultrastardx.dpr(434) Warning: "crtbeginS.o" not found, this will probably cause a linking failure
ultrastardx.dpr(434) Warning: "crtendS.o" not found, this will probably cause a linking failure
/usr/bin/ld.bfd: warning: ../game/link.res contains output sections; did you forget -T?
/usr/bin/ld.bfd: lib/projectM/cwrapper/libprojectM-cwrapper.a(projectM-cwrapper.o): in function __static_initialization_and_destruction_0':<br/> /usr/include/libprojectM/Common.hpp:143: undefined reference to
__dso_handle'
/usr/bin/ld.bfd: ../game/ultrastardx: hidden symbol `__dso_handle' isn't defined
/usr/bin/ld.bfd: final link failed: bad value
ultrastardx.dpr(434) Error: Error while linking
ultrastardx.dpr(434) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcarm returned an error exitcode
__dso_handle is in crtbeginS.o
Mantis conversion info:
- Mantis ID: 37158
- OS: Linux
- Platform: ARM
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 45794 (#1dffa170)