pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libexact: honor CFLAGS and LDFLAGS.



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <tk%giga.or.at@localhost>
Pushed By:	wiz
Date:		Fri Mar 2 08:17:25 2018 +0100
Changeset:	aabf459ce637b64d5b962493d6518d381f689ff1

Modified Files:
	libexact/distinfo
Added Files:
	libexact/patches/patch-Makefile

Log Message:
libexact: honor CFLAGS and LDFLAGS.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=aabf459ce637b64d5b962493d6518d381f689ff1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 libexact/distinfo               |  1 +
 libexact/patches/patch-Makefile | 27 +++++++++++++++++++++++++++
 2 files changed, 28 insertions(+)

diffs:
diff --git a/libexact/distinfo b/libexact/distinfo
index 002c1bc856..5781cfe514 100644
--- a/libexact/distinfo
+++ b/libexact/distinfo
@@ -4,3 +4,4 @@ SHA1 (libexact-1.0.tar.gz) = 1b846fc853d4d44c9c50296ddd9d1dd1fffe00de
 RMD160 (libexact-1.0.tar.gz) = ee3df7a1705e6d33ca2bcbdf3197b9bc7030886e
 SHA512 (libexact-1.0.tar.gz) = dbc2fe71effd04c4f2aa72ea112eb3ff2c8380bdd3a561700f609602da6a984743ec3597974fdca35827725f42c5fdfe796fc0e00a6ff6f3a57956cb5ccb310b
 Size (libexact-1.0.tar.gz) = 245481 bytes
+SHA1 (patch-Makefile) = ea95883395f6090c8a7d0871703d22e2f7e231e2
diff --git a/libexact/patches/patch-Makefile b/libexact/patches/patch-Makefile
new file mode 100644
index 0000000000..d7919c4d58
--- /dev/null
+++ b/libexact/patches/patch-Makefile
@@ -0,0 +1,27 @@
+$NetBSD$
+
+Honor CFLAGS and LDFLAGS.
+
+--- Makefile.orig	2008-06-27 13:08:20.000000000 +0000
++++ Makefile
+@@ -22,7 +22,6 @@
+ 
+ MAKE = make
+ CC = c99
+-CFLAGS = -O3
+ AR = ar
+ 
+ all: libexact.a solve test examples
+@@ -31,10 +31,10 @@ libexact.a: exact.o util.o
+ 	$(AR) -r libexact.a exact.o util.o
+ 
+ solve: solve.o libexact.a
+-	$(CC) -o solve solve.o libexact.a
++	$(CC) $(CFLAGS) $(LDFLAGS) -o solve solve.o libexact.a
+ 
+ test: test.o libexact.a
+-	$(CC) -o test test.o libexact.a
++	$(CC) $(CFLAGS) $(LDFLAGS) -o test test.o libexact.a
+ 
+ examples: libexact.a
+ 	cd examples && $(MAKE) && cd ..


Home | Main Index | Thread Index | Old Index