Hi,

the following patch is required to cleanly compile gsldap on FreeBSD
(possibly others that do not have/need -lresolv).

--- Makefile.preamble.ORG       Sun Jul  9 19:33:56 2006
+++ Makefile.preamble   Sun Jul  9 19:33:30 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
[email protected]
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to