File:  [cvs.NetBSD.org] / pkgsrc / security / bearssl / patches / patch-conf_Unix.mk
Revision 1.3: download - view: text, annotated - select for diffs
Tue Jul 28 08:49:54 2020 UTC (4 years, 4 months ago) by wiz
Branches: MAIN
CVS tags: pkgsrc-2024Q3-base, pkgsrc-2024Q3, pkgsrc-2024Q2-base, pkgsrc-2024Q2, pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, HEAD
bearssl: honor CFLAGS and LDFLAGS

$NetBSD: patch-conf_Unix.mk,v 1.3 2020/07/28 08:49:54 wiz Exp $

Don't overwrite LDFLAGS

--- conf/Unix.mk.orig	2018-08-14 20:41:54.000000000 +0000
+++ conf/Unix.mk
@@ -38,7 +38,7 @@ MKDIR = mkdir -p
 
 # C compiler and flags.
 CC = cc
-CFLAGS = -W -Wall -Os -fPIC
+CFLAGS += -W -Wall -Os -fPIC
 CCOUT = -c -o 
 
 # Static library building tool.
@@ -48,12 +48,12 @@ AROUT =
 
 # DLL building tool.
 LDDLL = cc
-LDDLLFLAGS = -shared
+LDDLLFLAGS = -shared ${LDFLAGS}
 LDDLLOUT = -o 
 
 # Static linker.
 LD = cc
-LDFLAGS = 
+#LDFLAGS = 
 LDOUT = -o 
 
 # C# compiler; we assume usage of Mono.

CVSweb <webmaster@jp.NetBSD.org>