pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/janet/patches
Module Name: pkgsrc
Committed By: nia
Date: Sun Jul 26 22:47:55 UTC 2020
Added Files:
pkgsrc/lang/janet/patches: patch-Makefile
Log Message:
janet: missing patch
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.4 pkgsrc/lang/janet/patches/patch-Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/lang/janet/patches/patch-Makefile
diff -u /dev/null pkgsrc/lang/janet/patches/patch-Makefile:1.4
--- /dev/null Sun Jul 26 22:47:55 2020
+++ pkgsrc/lang/janet/patches/patch-Makefile Sun Jul 26 22:47:55 2020
@@ -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