[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch for gsldap on FreeBSD
From: |
Chris Vetter |
Subject: |
Patch for gsldap on FreeBSD |
Date: |
Mon, 13 Feb 2006 19:35:19 +0100 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Patch for gsldap on FreeBSD,
Chris Vetter <=