diff options
author | Mikhail Teterin <mi@FreeBSD.org> | 2001-04-08 20:53:04 +0000 |
---|---|---|
committer | Mikhail Teterin <mi@FreeBSD.org> | 2001-04-08 20:53:04 +0000 |
commit | ca11adc80470c824cface30f12869a4c2cc6d139 (patch) | |
tree | 3a59784d1ae5003d45ed72827439ee76454e7fc8 /mail/cclient | |
parent | Upgrade alpha netscapes to v4.77. (diff) |
Fix handling of WITH_SSL -- the USE_OPENSSL was defined when in the
opposite case :) Make the c-client's Makefile use the LDFLAGS files,
when linking the shared library. This ensures, that the things like
-lpam, -lssl are linked into it and an application does not have to
refer to them explicitly.
WITH_SSL should, IMHO, be made a default...
Diffstat (limited to 'mail/cclient')
-rw-r--r-- | mail/cclient/Makefile | 6 | ||||
-rw-r--r-- | mail/cclient/files/patch-ab | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/mail/cclient/Makefile b/mail/cclient/Makefile index 357ca477f8d5..291169bd0590 100644 --- a/mail/cclient/Makefile +++ b/mail/cclient/Makefile @@ -18,11 +18,9 @@ EXTRACT_SUFX= .tar.Z MAINTAINER= ports@freebsd.org INSTALLS_SHLIB= yes -.if defined(WITH_SSL) -ALL_TARGET= bsf SSLTYPE=unix -.else ALL_TARGET= bsf - +.if defined(WITH_SSL) +MAKE_ARGS+= SSLTYPE=unix USE_OPENSSL= yes .endif diff --git a/mail/cclient/files/patch-ab b/mail/cclient/files/patch-ab index c9287954240b..dc25bf496bea 100644 --- a/mail/cclient/files/patch-ab +++ b/mail/cclient/files/patch-ab @@ -84,9 +84,9 @@ +$(SHLIBNAME): $(SOFILES) +.if $(PORTOBJFORMAT) == "elf" -+ ld -shared -x -soname $(SHLIBNAME) -o $(SHLIBNAME) $(SOFILES) ++ ld -shared -x -soname $(SHLIBNAME) -o $(SHLIBNAME) $(SOFILES) `cat LDFLAGS` +.else -+ ld -Bshareable -x -o $(SHLIBNAME) $(SOFILES) ++ ld -Bshareable -x -o $(SHLIBNAME) $(SOFILES) `cat LDFLAGS` +.endif + ln -s $(SHLIBNAME) lib$(SHLIBBASE).so + |