* turn on USE_NEWGCC.
* don't use mkdirhier (to avoid implicit BUILD_DEPENDS on XFree86)
* define ONLY_FOR_ARCHS=i386.
* tweak do-install rules.
* revise some patch for the socklen_t issue.
* fit library file names in the ELF world to enable making package on -STABLE and -CURRENT.
PR: 168006
Submitted by: OKAZAKI Tetsurou <okazaki@be.to>
g++ -fhandle-exceptions -pipe -I. -D__OMNIORB2__ -I../../../include -DDEFAULT_LOGDIR=\"/var/omninames\" -o omniNames NamingContext_i.o log.o omniNames.o -L../../../src/lib/omniORB2 -lomniORB2 -L../../../src/lib/omnithread -lomnithread
../../../src/lib/omnithread/libomnithread.a(posix.o): In function `omni_mutex::omni_mutex(void)':
posix.o(.text+0x10): undefined reference to `pthread_mutex_init'
../../../src/lib/omnithread/libomnithread.a(posix.o): In function `omni_mutex::~omni_mutex(void)':
posix.o(.text+0xa2): undefined reference to `pthread_mutex_destroy'
../../../src/lib/omnithread/libomnithread.a(posix.o): In function `omni_mutex::lock(void)':
to make this compile again. I never quite understood the "#elif"
syntax and now I think I never will.
By the way, this is just a patch-up to DavidO's "stab in the dark" and
is not guaranteed to work on NetBSD and/or OpenBSD. I just "fixed" it
in the way that it doesn't break FreeBSD while preserving the spirit
of his changes (i.e., to "stab" whatever he was aiming at).