Skip to content

Commit

Permalink
janet: missing patch
Browse files Browse the repository at this point in the history
  • Loading branch information
alarixnia committed Jul 26, 2020
1 parent 5ef14c1 commit 9e5776b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lang/janet/patches/patch-Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9e5776b

Please sign in to comment.