From b03fcfc5fb3fa876b7ef4be45d90868b8f6e6def Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Tue, 10 May 2005 23:17:04 +0000 Subject: Changes so DS can be built with gcc on Solaris. Pass these build variables to gmake: NO_MDUPDATE=1 NS_USE_GCC=1 --- ldap/nsldap.mk | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ldap/nsldap.mk') diff --git a/ldap/nsldap.mk b/ldap/nsldap.mk index e3ad1286..6e681f70 100644 --- a/ldap/nsldap.mk +++ b/ldap/nsldap.mk @@ -955,8 +955,10 @@ PLATFORM=sunos5 # ranlib not needed under SunOS5 RANLIB = true +ifdef NS_USE_NATIVE # be explicit about which CC to use CC=cc -v +endif # gie full path to hostname since it may not be in user's path HOSTNAME=/usr/ucb/hostname @@ -966,7 +968,11 @@ INSTALL=$(LDAP_SRC)/build/install.sh # Flags required to cause compiler to generate code suitable for use in # a shared library. +ifdef NS_USE_NATIVE SLCFLAGS= -KPIC +else +SLCFLAGS= -fPIC +endif # Extra linker options needed when creating shared libraries DYNALIBS= @@ -981,7 +987,9 @@ LDRPATHFLAG_PREFIX=-R # flag to pass to ld to set a shared library's "internal name" # this is used like this, for example: $(SONAMEFLAG_PREFIX)libldap.so +ifdef NS_USE_NATIVE SONAMEFLAG_PREFIX=-h +endif THREADS= -DTHREAD_SUNOS5_LWP PLAT_ADMCFLAGS= -DSVR4 -DSOLARIS -- cgit