Bug#191033: hugs98_98.200211-1(unstable/ia64): FTBFS: undefined reference to `main'

Ross Paterson ross@soi.city.ac.uk
Mon, 5 May 2003 11:08:26 +0100


OK, so "-shared -fPIC" should work, but somehow the configure test isn't
detecting that.  Perhaps src/unix/config.log has some clues (after
running configure).

If that doesn't help, there's a kludge, since you're only dealing with
gcc: in src/unix/configure.in, change

AC_DEFINE_UNQUOTED(MKDLL_CMD, "${CC-cc} $ac_cv_dll_flags")

to

AC_DEFINE_UNQUOTED(MKDLL_CMD, "${CC-cc} -shared -fPIC")