[BACK]Return to patch-src_plugins_Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / comms / deforaos-phone / patches

File: [cvs.NetBSD.org] / pkgsrc / comms / deforaos-phone / patches / Attic / patch-src_plugins_Makefile (download)

Revision 1.1, Tue Mar 22 11:29:11 2016 UTC (4 years, 3 months ago) by khorben
Branch: MAIN
CVS Tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1

Register missing dependency on security/openssl

This fixes the build with PKGSRC_MKPIE.

$NetBSD: patch-src_plugins_Makefile,v 1.1 2016/03/22 11:29:11 khorben Exp $

Build and link the "smscrypt" plug-in with OpenSSL as required.

--- src/plugins/Makefile.orig	2016-03-22 11:22:04.000000000 +0000
+++ src/plugins/Makefile
@@ -115,8 +115,8 @@ $(OBJDIR)profiles$(SOEXT): $(profiles_OB
 	$(CCSHARED) -o $(OBJDIR)profiles$(SOEXT) $(profiles_OBJS) $(profiles_LDFLAGS)
 
 smscrypt_OBJS = $(OBJDIR)smscrypt.o
-smscrypt_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
-smscrypt_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
+smscrypt_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) `pkg-config --cflags openssl`
+smscrypt_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) `pkg-config --libs openssl`
 
 $(OBJDIR)smscrypt$(SOEXT): $(smscrypt_OBJS)
 	$(CCSHARED) -o $(OBJDIR)smscrypt$(SOEXT) $(smscrypt_OBJS) $(smscrypt_LDFLAGS)