how to support compilers that cannot create executables?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

when compiling libraries, it technically is not required to have a
compiler to create executables. We might have a lib with unit tests
where the unit tests work on linux and windows only, but not on a
small embedded platform. On this platform it might be complicated,
special and non-standard to create actual executables (like linking
firmware images or so).
However, configure usually checks if the compiler can create
executables. Can (should) this be prevented?

Currently, we have some dummy entry code (void *__main = 0; void
*_main = 0;) to make the compiler toolchain to link something (which
is completely useless, but counts as executable).

Are there suggestions/recommendations how to do this better?

Steffen


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux