Skip to content
Permalink
Browse files

cfm: Honor MacPorts LDFLAGS

Needed for legacysupport to work.

See: #7072
  • Loading branch information
ryandesign committed May 15, 2020
1 parent 3f10173 commit 4b1b2ee5a625c06eb645e9b060865d8037b77e10
Showing with 18 additions and 3 deletions.
  1. +18 −3 sysutils/cfm/files/patch-Makefile.diff
@@ -1,6 +1,13 @@
--- Makefile.orig 2020-02-27 12:06:22.000000000 -0700
+++ Makefile 2020-05-04 01:15:38.000000000 -0700
@@ -5,8 +5,8 @@
Append to CFLAGS and CPPFLAGS rather than overwriting them.

See: https://github.com/WillEccles/cfm/pull/15

Honor LDFLAGS when linking.

See: https://github.com/WillEccles/cfm/pull/16
--- Makefile.orig 2020-02-27 13:06:22.000000000 -0600
+++ Makefile 2020-05-15 07:03:47.000000000 -0500
@@ -5,15 +5,15 @@
MANPAGE = cfm.1
PREFIX ?= /usr/local

@@ -11,3 +18,11 @@

.PHONY: install uninstall clean

all: $(TARGET)

$(TARGET): $(CONF) $(SRC)
- $(CC) $(CFLAGS) $(CPPFLAGS) $(SRC) -o $@
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(SRC) -o $@

$(CONF):
@cp -v $(DEFCONF) $(CONF)

0 comments on commit 4b1b2ee

Please sign in to comment.
You can’t perform that action at this time.