Hi,

FreeBSD doesn't have resolv, so GSLDAP won't link by default. The following patch of Makefile.preamble checks whether the host OS is FreeBSD and adds -lresolv to ADDITIONAL_LIB_DIRS if it isn't.

  --- Makefile.preamble.ORG       Sun Feb 12 12:12:29 2006
  +++ Makefile.preamble   Mon Feb 13 19:30:26 2006
  @@ -57,7 +57,11 @@
   #-lgnustep-xraw

   # Additional library directories the linker should search
-ADDITIONAL_LIB_DIRS = -L../src/$(GNUSTEP_OBJ_DIR) -L$(GNUSTEP_SYSTEM_ROOT)/lib -L/usr/local/lib -lldap -llber -lresolv +ADDITIONAL_LIB_DIRS = -L../src/$(GNUSTEP_OBJ_DIR) -L$(GNUSTEP_SYSTEM_ROOT)/lib -L/usr/local/lib -lldap -llber
  +
  +ifneq ($(findstring freebsd, $(GNUSTEP_HOST_OS)), freebsd)
  +ADDITIONAL_LIB_DIRS +=-lresolv
  +endif

   #
   # Flags dealing with installing and uninstalling

--
Chris




_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to