On 6/23/06, Frederick C. Druseikis <[EMAIL PROTECTED]> wrote:
...
A possibility is that there is a contradictory use of flags on the cc
line, at least for the amd64.  Does anybody have insight on this?
...
-I/home/hubert/openbsd/ports/devel/eclipse/sdk/w-eclipse-sdk-3.1p6/plugins/org.eclipse.core.resources.openbsd/../org.eclipse.core.resources.openbsd/src/
-I/usr/local/exodus/include -I/usr/local/exodus/include/openbsd
libcore_3_1_0.so.2.0 -static -lc

Well, that -static option is telling ld to ignore the shared version
of libc (which _is_ PIC) and link against the static version (which
isn't PIC).  While OpenBSD _does_ include a static, PIC version of
libc as libc_pic.a, I would think that your first step would be to
remove that -static and see if that's all it takes.

If there's some fundamental reason for not using the dynamic version
of libc, that reason should be documented somewhere in the build notes
and/or Makefile.  If it isn't documented but you find such a reason,
be sure to write it down so that those who follow you don't scratch
their heads like you are now...


Philip Guenther

Reply via email to