summaryrefslogtreecommitdiff
path: root/lang/ocaml/patches/patch-tools_Makefile
blob: fe2b63fc929bfc2612095423c4fadd7325910ec4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-tools_Makefile,v 1.3 2020/12/09 10:33:04 jaapb Exp $

Honor LDFLAGS.

--- tools/Makefile.orig	2020-01-10 16:10:46.000000000 +0000
+++ tools/Makefile
@@ -82,7 +82,7 @@ INCLUDES = $(addprefix -I $(ROOTDIR)/,ut
                        file_formats lambda)
 COMPFLAGS = -absname -w +a-4-9-41-42-44-45-48 -strict-sequence -warn-error A \
  -principal -safe-string -strict-formats -bin-annot $(INCLUDES)
-LINKFLAGS = $(INCLUDES)
+LINKFLAGS = $(INCLUDES) -cclib "$(LDFLAGS)"
 VPATH := $(filter-out -I,$(INCLUDES))
 
 .PHONY: all allopt opt.opt # allopt and opt.opt are synonyms