Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/janet/patches janet: missing patch



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c9c060f9f2d2
branches:  trunk
changeset: 436071:c9c060f9f2d2
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Jul 26 22:47:55 2020 +0000

description:
janet: missing patch

diffstat:

 lang/janet/patches/patch-Makefile |  21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diffs (25 lines):

diff -r 2e0b45d776b6 -r c9c060f9f2d2 lang/janet/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/janet/patches/patch-Makefile Sun Jul 26 22:47:55 2020 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-Makefile,v 1.4 2020/07/26 22:47:55 nia Exp $
+
+Honour CFLAGS/LDFLAGS in bootstrap.
+
+--- Makefile.orig      2020-07-25 18:48:43.000000000 +0000
++++ Makefile
+@@ -41,11 +41,11 @@ SONAME_SETTER=-Wl,-soname,
+ # For cross compilation
+ HOSTCC?=$(CC)
+ HOSTAR?=$(AR)
+-CFLAGS?=-fPIC -O2
+-LDFLAGS?=-rdynamic
++CFLAGS+=-fPIC
++LDFLAGS+=-rdynamic
+ 
+ COMMON_CFLAGS:=-std=c99 -Wall -Wextra -Isrc/include -Isrc/conf -fvisibility=hidden
+-BOOT_CFLAGS:=-DJANET_BOOTSTRAP -DJANET_BUILD=$(JANET_BUILD) -O0 -g $(COMMON_CFLAGS)
++BOOT_CFLAGS:=$(CFLAGS) -DJANET_BOOTSTRAP -DJANET_BUILD=$(JANET_BUILD) $(COMMON_CFLAGS)
+ BUILD_CFLAGS:=$(CFLAGS) $(COMMON_CFLAGS)
+ 
+ # For installation



Home | Main Index | Thread Index | Old Index